Jump to content

this code is not working????


MDanz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.