header('Content-Type: text/html; charset=tis-620'); echo ""; include('db_config.php'); $sql="select * from $_data where kd_ed='1' "; $result=mysql_query($sql); echo "
ลำดับ | รายละเอียด | หมายเหตุ | "; $rw=1; while ($db=mysql_fetch_array($result)) { if ($db[kd_ed]==2) { $cl='#CCCCCC'; $rem='แก้ไขแล้ว'; } else { $cl='#FFDBB7'; $rem='รอแก้ไข'; } $name=substr($db[log_name],0,25); //$desc=substr($db[log_desc],0,300); echo "
$rw | $db[kd_cert] | $rem |