Hi,
I battled with this one all night and all day today but its got me licked.
I have a code that looks like this:
$query_count = "SELECT COUNT(*) FROM songs WHERE sgenre ='$genre'";
$result_count = mysql_query($query_count, $conn);
$totalrows = mysql_result($result_count, 0) or die(mysql_error());
$limitvalue = $page * $limit - ($limit);
$getInfo = "SELECT songid, stitle, bandName FROM songs WHERE sgenre ='$genre' ORDER BY stitle DESC LIMIT $limitvalue, $limit";....
This is working great except when there are no results in the genre query, it pukes. It seems to exit the script at that point.