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);
Mysql query, two times?
Hello to all,I'm new to php coding and i like it alot. I need help with some noob stuff.1. Having problem with mysql query after submiting HTML form. It's allways execuding two times, that way i have
Batch Related Pricing
Hi, I need some clarity on the batch related pricing
php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from the sql. However when I click delete nothing happens.Code:
query based on 2 conditions
I want to select if the doc_type is either s OR f but this doesn't work:Code: [Select]$query2 = "SELECT * FROM members WHERE doc_type='s' && doc_type= 'f' ORDER BY
how to remove in php string display
My code is
Print 'a' to 'z' via for loop
A very simple problem..How Can I print a to z NOT a to y ?It is a part of a code where | $alpha= 'a';for($alpha='a';$alpha!='z';$alpha++){echo $alpha.' ';} Output: a b c d e f g h i j k l m n o p q
Mastering Regular Expressions, Third Edition, is available.
The Third Edition of Mastering Regular Expressions is available.QuoteThis third edition is 58 pages longer than the second edition, and now reaches 542 pages in length. The main changes from the
Mouseover to edit (Ajax)
hi friends, can anyone help with the code behind to get this application working, please in VB (new biz) <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Probably Easy, Need help with Check Boxes in PHP Code
hello,Thanks for looking this over and helping me out. My problem is I have a online store locator database and whats happening is I keep getting an "array" message when I look at the store.
Selecting an "empty" date formated field
How do you select an "empty" date field? I've tried the few ways I can think.