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'];
Did you know?Explore Trending and Topic pages for more stories like this.
$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

The type or namespace name 'ServiceModel' does not exist in the namespace 'System'
When I locally run the website, it works just fine, but when I uploaded it to the hosting environmen

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

More pug propaganda.
http://www.youtube.com/watch?v=8Kkrmubsgf8

The commercial is definitely worth watching pug aw

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

how to transport the Query and insfoset
Hi

I have created the query using SQ01........
How to created T-code for query..

rookie looking for help coding a CSS form with PHP
I'm trying to figure out how to add PHP code to my xhtml form so that it is a working form embedded

News script
Hi ...

I am not sure if this is the rite place to post this but if its not sorry

i am

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have tho

Please help - should be a simple fix.. driving me nuts
Everything seemed to be working fine. I have a table, it alphabetically lists a bunch of cities and

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