$sql = "select * from officer where O_namelogin='$O_namelogin' and O_passlogin='$O_passlogin'";
$query = mysql_query($sql) or die("error=$sql");
$num = mysql_num_rows($query);
$sql = "select * from officer where O_namelogin='$O_namelogin' and O_passlogin='$O_passlogin'";
echo $sql;
echo ออกมาดู แล้วก้อบไปวางที่ mysql แล้วรันดูครับว่ามีข้อมูลรึปล่าว
SELECT *
FROM officer
WHERE O_namelogin = ''
AND O_passlogin = '' >
LIMIT 0 , 30
MySQL แสดง:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 2