HOME > PHP > PHP Forum > 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 '=' at line 1 แก้ยังไงอ่าคับ
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 '=' at line 1 แก้ยังไงอ่าคับ
include("connect.php");
include("function.php");
$sql = "SELECT * FROM webboard_post order by question_id desc=";
$query = mysql_query($sql) or die(mysql_error() );
$num = mysql_num_rows($query);
ตาม error ที่มันบอกแหละครับ
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 '='
SELECT * FROM webboard_post order by question_id desc=
ถ้าให้ถูกต้องเป็น
ORDER BY question_id DESC
ไม่มี = ตามหลัง DESC ครับ
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 startpoint,10' at line 1