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

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

selection tool on raster image
Hi!
I have to implement in my app a selection tool which lets users to select region of any shape

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

Shuffle between users ??
I have multiple $users in table. I need to send them $message.

I need to send the next messag

Slashes
Have a small problem and I'm not able to understand why I'm getting the results I'm getting... and i

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


Thanks in advance

foreach loop, assistance request
I would like some guidance on the usage of foreach as I try to parse through a large database and wh

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

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