|
|
|
error ==> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in |
|
|
|
|
|
|
|
ทำไม Query SQL ถึงมี semicolon หละครับ
|
|
|
|
|
Date :
2012-11-17 05:44:52 |
By :
mariddew |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
$sql_news="SELECT * FROM news ORDER BY id_news DESC limit $goto,$each;";
echo $sql_news;
$result_news=mysql_query($sql_news) or die(mysql_error());
เอา SQL and Error มาโชว์หน่อยครับ
|
|
|
|
|
Date :
2012-11-18 08:02:47 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลองเอา ; จากบรรทัดนี้ออกนะครับ
$sql_news = "SELECT * FROM news;";
$sql_news="SELECT * FROM news ORDER BY id_news DESC limit $goto,$each;";
|
|
|
|
|
Date :
2012-11-18 15:29:34 |
By :
arm8957 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|