PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$sql1 = mysql_query("SELECT a FROM d_poll1") or die(mysql_error());
?>
???
The variable wont take any argument. I tried to echo it's value and got nothin. As i mentioned, there's a default value of 0 in DB... I increased the value manually and it works, but why not wit 0?
depending on how you echo'd it, the engine may have chosen not to actually write the number out as zero, empty string, null, and false, are all considered empty values to several functions unless you do some explicit stuff.