02-11-2008, 03:00 PM
|
#4 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Location: France, near Paris
Posts: 53
Thanks: 6
|
Tiens, un français  Désolé, pour que tout le monde comprenne, je vais écrire en anglais ;)
So,
First, use the "or die" postfix statement at the end of your SQL query. It'll give you more details on your error.
PHP Code:
$res = mysql_query("SELECT * FROM `video` where group='". $_GET[cat] ."' ORDER BY `id` DESC LIMIT ". $premierMessageAafficher .", ". $nombreDeMessagesParPage)or die(mysql_error()); }
Then, verify that your $_GET["cat"] is well formated (alpha, alphanum, etc...)
|
|
|