<?php
include ("connect_db.php");
echo $sql="select * from record where record.record_user = '$valid_user' "; // เลือกตาราง
$rs_list= mysql_query($sql); //เรียกคำสั่ง
while ($data_list = mysql_fetch_array($rs_list)) //เรียกดูข้อมูล
{
if($record_code==$data_list[record_code]){ //
echo "<option value =$data_list[record_code] selected>$data_list[record_code]";
// echo "<option value =$data_list[model_id] selected>$data_list[model_code] : $data_list[model_name]";
}else{
echo "<option value =$data_list[record_code]>$data_list[record_code] ";
//echo "<option value =$data_list[model_id]>$data_list[model_code] : $data_list[model_name]";
}
}
?>