MDanz Posted February 18, 2010 Share Posted February 18, 2010 it says this error.. Warning: Division by zero in .. the variables are correct, so why is the variable $max zero??/ $sw = $_GET['w']; $sh = $_GET['h']; if("$swx$sh" =="1024x768") { $max = 9; }elseif("$swx$sh" =="1440x900") { $max = 14; } $run = mysql_query($recent); $foundnum = mysql_num_rows(mysql_query($recent)); $row_count = ceil($total / $max); $row_count = ceil($foundnum / $max); Link to comment https://forums.phpfreaks.com/topic/192554-this-code-is-not-working/ Share on other sites More sharing options...
LeadingWebDev Posted February 18, 2010 Share Posted February 18, 2010 $wh = $sw."x".$sh; if($wh =="1024x768") { $max = 9; }elseif($wh =="1440x900") { $max = 14; } Link to comment https://forums.phpfreaks.com/topic/192554-this-code-is-not-working/#findComment-1014502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.