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

Progress bar tracking file downloads
Hey guys, was wondering if there was a way to track how far a file has been downloaded. I know there

How to generate a text file using php...?
Hi,
Can anyone give me code to generate a text file using php


Thanks in advance

Else statement screws up all css
Does anyone know what goes wrong in the process with this php code?
This code seems to be causing

Pagination won't carry results past page 2.
Hi all,

I've worked out my pagination script and its paginating fine until I click next from

Stopping page post back
I have few literal contriols in my page and a repeater too. But inspite of using update panel, postb

Using mysql_real_escape_string for displayed content
On my website users can input data into a textarea and it will store it in the mysql database. But,

form submit at godaddy?
Trying to test form submission at GoDaddy and it does not seem to work. Here's the page...

h

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

How to make a input/output field with multiple lines
Hello.
I put a input/output field on the screen but I could not change height of it. I need to

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