02-11-2008, 07:09 PM
|
#6 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Location: France, near Paris
Posts: 53
Thanks: 6
|
pfff, I haven't seen it before -_-
You have forgotten the quotes before "cat".
Try with that:
PHP Code:
$res = mysql_query("SELECT * FROM `video` where group='". $_GET["cat"] ."' ORDER BY `id` DESC LIMIT ". $premierMessageAafficher .", ". $nombreDeMessagesParPage)or die(mysql_error());
Without quotes, the php interpretor looks for the global variable cat. This one doesn't exists so, error.
If there are still errors, do this:
Verify that $_GET["cat"] is well formated (alphanumeric). Idem for $premierMessageAafficher and $nombreDeMessagesParPage. Both must be numerics without coma.
|
|
|