ok

Mini Shell

Direktori : /home2/selectio/public_html/pvmatricschool.com/dashboard/admin/
Upload File :
Current File : /home2/selectio/public_html/pvmatricschool.com/dashboard/admin/get-end-category.php

<?php
include 'inc/config.php';
if($_POST['id'])
{
	$id = $_POST['id'];
	
	$statement = $pdo->prepare("SELECT * FROM tbl_end_category WHERE mcat_id=?");
	$statement->execute(array($id));
	$result = $statement->fetchAll(PDO::FETCH_ASSOC);
	?><option value="">Select End Level Category</option><?php						
	foreach ($result as $row) {
		?>
        <option value="<?php echo $row['ecat_id']; ?>"><?php echo $row['ecat_name']; ?></option>
        <?php
	}
}

Zerion Mini Shell 1.0