$strSQL = "SELECT student_id,project_id
FROM evaluation_detail WHERE student_id LIKE '".$strDrop."%' "; // $strDrop คือค่าที่รับเข้ามา 5016
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$strCheck = "SELECT student_id FROM evaluation_detail WHERE student_id LIKE '".$strDrop."%' ";
$objCheck = mysql_query($strCheck) or die(mysql_error());
$total = mysql_num_rows($objCheck);
<? $strSQL = "SELECT student_id,project_id
FROM evaluation_detail WHERE student_id LIKE '".$strDrop."%' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
<?
$f=1;
$u=0;
$strSQL = "SELECT DISTINCT project_name,project.project_id
FROM evaluation_detail,project WHERE student_id LIKE '".$strCancle."%' AND status_evaluation = 'NOT' AND evaluation_detail.project_id
= project.project_id ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");