View Single Post
Old 02-11-2008, 03:00 PM   #4 (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

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