$pages = ceil(mysql_result($num, 0 / $per_page);
That looks freaky.
0 / $per_page
will give you a value below 1, so which record were you trying to retrieve? is this what you want?
$pages = ceil(mysql_result($num, 0)/ $per_page);
But $num should be the result resource - check out the php.net manual on mysql_result.
diafol
Rhod Gilbert Fan (ardav)
7,796 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
$pages = ceil(mysql_result($num, 0 / $per_page));
You are missing a close parenthesis, causing the syntax error.
cscgal
The Queen of DaniWeb
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
You are missing a close parenthesis, causing the syntax error.
Indeed!
diafol
Rhod Gilbert Fan (ardav)
7,796 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080