pagination issue
Posted: Thu Aug 16, 2007 12:31 pm
feyd | Please use
and when I echo $num_records I get a 0, which isn't right...any thoughts?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
sorry to ask but I am using the following code:Code: Select all
//count number of records
$query="SELECT COUNT(*) FROM Products WHERE category=\"$category_var\" and series=\"$series_var\"";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$num_records = $row[0];feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]