%PDF- %PDF-
Direktori : /home/medipszd/www/admin/ |
Current File : //home/medipszd/www/admin/category_fetch.php |
<?php include 'includes/session.php'; $output = ''; $conn = $pdo->open(); $stmt = $conn->prepare("SELECT * FROM category"); $stmt->execute(); foreach($stmt as $row){ $output .= " <option value='".$row['id']."' class='append_items'>".$row['name']."</option> "; } $pdo->close(); echo json_encode($output); ?>