$result = mysql_query($sql_query,$conn) or die('Invalid query: ' . mysql_error()); $tip = $details['TotalHouseholds']; $perc = 21.33% $sumone= $tip*$perc;
could anyone tell me if this is remotley correct i have tryed it in a browser but i get the page displayed normally with a nice line of code telling me
Warning: Division by zero in /home/sites/miraclehosting.co.uk/public_html/scdc.php on line 179
am bit confused the code is supposed to pull some data from a mysql database and multiply it by 21.33% you would proberlt think it is simple but i am newand i want to cry!!!!