<?php
$d = date("m/d/Y");
$news_today = mssql_query("select ID_News,Topic_News,Detail_News,Images_news,Date_News from News WHERE
Date_News = '$d' ORDER BY ID_News DESC TOP 5");
?>
มานก้อerrorอะค่ะ
errorว่า
Warning: mssql_query(): message: Incorrect syntax near the keyword 'TOP'. (severity 15) in c:\appserv\www\genius\index_eng.php on line 192
ที่นี้มานerrorว่า
Warning: mssql_query(): message: Incorrect syntax near the keyword 'from'. (severity 15) in c:\appserv\www\genius\index_eng.php on line 192
<?php
$d = date("m/d/Y");
$news_today = mssql_query("select TOP (5) from News where Date_News = '$d' ORDER BY ID_News DESC");
?>
code ค่ะ
มันerrorยางนี้ค่ะ
Warning: mssql_query(): message: Incorrect syntax near the keyword 'from'. (severity 15) in c:\appserv\www\genius\index_eng.php on line 192