this code is not working????


Posted on 16th Feb 2014 07:03 pm by admin

it says this error.. Warning: Division by zero in ..

the variables are correct, so why is the variable $max zero??/
Code: $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);

No comments posted yet

Your Answer:

Login to answer
284 Like 10 Dislike
Previous forums Next forums
Other forums

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

Match stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

Odd or Even
Inside of a while loop I need to echo several rows of info...easy enough.

In the loop (for th

Is it possible to stop reservation creation in PM Order?
Hi All,

Is it possible to stop reservation creation in PM Order?

Thanks in adv

Opening Multiple Files/Links in Order.
I want to open links in order/one-by-one and check each for a specific string.

Example:
I

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

calendar dates and hours compare problem
i have a calendar in wordpress, everything works great except that i can make 2 meetings at the same

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash