[solved]what's wrong with sql?
Posted: Fri Jul 08, 2005 9:41 am
hi again,
can anyone tell me whether anything is wrong with this code:
i'm getting this error:
-TSer version for the right syntax to use near 'ORDER BY id' at line 1[/quote]
Thanks !
-TSDESC LIMIT " . $min . ",10";
i'm getting this error:
-TS 1[/quote]
Thanks !
-TSe215d]$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . "e;,10"e;;
i'm getting this error:
-TSith this code:
i'm getting this error:
-TS
can anyone tell me whether anything is wrong with this code:
Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TSer version for the right syntax to use near 'ORDER BY id' at line 1[/quote]
Thanks !
-TSDESC LIMIT " . $min . ",10";
i'm getting this error:
Thanks !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 'ORDER BY id' at line 1[/qthat corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id' at line 1
-TS 1[/quote]
Thanks !
-TSe215d]$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . "e;,10"e;;
i'm getting this error:
Thanks !You have an error in your SQL syntone tell me whether anything is wrong with this code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TS. " ORDER BY id DESC LIMIT " . $min . ",10";
i'm getting this error:Thanks !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 'ORDER BY id' at line 1
-TS]
i'm getting this error:Thanks !You have an error in your SQL syntax; check the manual that corre. $cat . " ORDER BY id DESC LIMIT "e; . $min . "e;,10"e;;
i'm getting this error:Thanks !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 'ORDER BY id' at line 1
-TSt . " ORDER BY id DESC LIMIT " . $min . ",10";
i'm getting this error:Thanks !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 'ORDER BY id' at line 1
-TSid' at line 1
-TSECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";
i'm getting this error:Thanks !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 'ORDER BY id' at line 1
-TShis code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TS" . $min . ",10";
i'm getting this error:Thanks !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 'ORDER have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id' at line 1
-TSnual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id' at line 1
-TSith this code:
Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDEng this error:Than744b0e215d]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 'ORDER BY id' at line 1
i'm getting this error:Thanks !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 'ORDER BY id' at line 1
-TS DESC LIMIT " . $min . ",10";
i'm getting this error:
[quote:74r anything is wrong with this code:i'm getting this error:Code: Select all
$sql = "e;SELECT * FROM "e;. $cat . "e; ORDER BY id DESC LIMIT "e; . $min . "e;,10"e;;Thanks !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 'ORDER BY id' at line 1
-TS getting this error:Thanks !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 'ORDER BY id' at line 1
-TSthis code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TSith this code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TSher anything is wrong with this code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";Thanks !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 'ORDER BY id' at line 1
-TSuote; ORDER BY id DESC LIMIT "e; . $min . "e;,10"e;;
i'm getting this error:You have an error in your SQL syntaxll me whether anything is wrong with this code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";You have an error in your SQL syntax; check the manual that corresponds to your MySQL server verss code:i'm getting this error:Code: Select all
$sql = "SELECT * FROM ". $cat . " ORDER BY id DESC LIMIT " . $min . ",10";
-TS