You are here: string and numerics... « All PHP « IT news, forums, messages
string and numerics...

Posted by Domestos on 10/15/05 01:59

another silly question, but one that is making me scratch my head...


If a user enters '0000' how can I make sure it stores as '0'

like wise...

If a user enter '0032' how can I make sure it stores as '32'

Adding 0 to them makes them come back as 0 - as I assume they are being
treated as strings...

Ideally i need to convert them into numerics rather than a string...

how do I do that?



Domestos

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация