%PDF- %PDF-
Direktori : /proc/thread-self/root/home/medipszd/www/admin/ |
Current File : //proc/thread-self/root/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); ?>