function View_Bord($id){//บอร์ดสำหรับผู้ใช้
require_once "db.php";
$mysql = new db();
$SQLCon = "SELECT * FROM bdss_topic WHERE id_topic='$id'";
$result=$mysql->query($SQLCon);
if ($result) {
$SQLCon1 = "update bdss_topic set read=read+1 where id_topic='$id'";
$mysql->query($SQLCon1);
}
มันฟ้อง แบบนี้ครับ
db::query() SQL Command invalid 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 'read=read+1 where id_topic=53' at line 1