It usually means that your query is wrong. Echo the query to the screen and copy/paste it into the sql window of phpmyadmin. See what it gives you.
diafol
Keep Smiling
10,672 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
The code on lines 16 to 20 is a bit suspicious:
if (!isset($_GET['Page']))
{
//Instruction if $_POST['value']doesnt exist
$_GET['Page']="%";
}
$_GET['Page'] is supposed to be an integer, isn't it? In some circumstances the $Page variable could be assigned a value of % and the query would fail since $Page_Start and $Per_Page wont get calculated correctly:
$strSQL .=" order by pro_id ASC LIMIT $Page_Start , $Per_Page";
broj1
Nearly a Posting Virtuoso
1,212 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13