[thelist] inserting zero

Burhan Khalid thelist at meidomus.com
Wed Apr 2 15:42:02 CST 2003


RUST Randal wrote:
>>On the addStats.php page, I want to display a default value 
>>of "0" in each field. But nothing gets displayed unless I 
>>make the value "00." 
> 
> 
> Sorry, I really wasn't specific enough here. I want the value of the
> variable to be "0."
> 
> $hits="0"; doesn't display anything.
> 
> $hits="00" displays 00.

Try removing the " " around the 0

$hits = 0;

I think PHP is making your "0" a string.

iaef, you can always typecast.

--
Burhan Khalid
thelist[at]meidomus[dot]com





More information about the thelist mailing list