View Single Post
Old 02-11-2008, 07:09 PM   #6 (permalink)
Gibou
The Contributor
 
Gibou's Avatar
 
Join Date: Nov 2007
Location: France, near Paris
Posts: 53
Thanks: 6
Gibou is on a distinguished road
Default

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.
__________________
Wedus project's Website
Send a message via MSN to Gibou
Gibou is offline  
Reply With Quote