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

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: [Select]$setImage= 'productimages

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

Change Sort Order to Display Newest File First
Hi Guys,

I have a page that sorts the contents (PDFs) of a directory and displays them on the

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

In the loop (for th

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

Inserting into MySQL Newbie
Hi ive got a slight problem where ive made a simple web form where the customer inserts the ammount

Join Query Help
Hi all,

I am having problems with the below code, which we shall call 'my first join query'!

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