Page MenuHomeGRNET

select_status.php
No OneTemporary

File Metadata

Created
Tue, Nov 18, 11:03 PM

select_status.php

<?php
require_once("../../db_connect.php");
global $dbh;
$sth_status = $dbh->prepare("SELECT DISTINCT study_status_id FROM study where study_status_id<>'';");
$sth_status->execute();
$sth_status->setFetchMode(PDO::FETCH_ASSOC);
while ($status_row =$sth_status->fetch()){
print("<option ".((isset($_POST['status']) && $_POST['status']==$status_row['study_status_id'])?"selected":"")." value='".$status_row['study_status_id']."'>".htmlspecialchars($status_row['study_status_id'], ENT_QUOTES)."</option>");
}
?>

Event Timeline