You are here: Storing player numbers « PHP SQL « IT news, forums, messages
Storing player numbers

Posted by MattMika on 09/30/07 11:25

I need to store player numbers in a DB with a range from 0-99, ie. 00,
07, 99, etc.. These will be entered by way of form. Whats the best way
to do this?

I've messed with char(2) and validating but,

if (ereg("[^0-9]{2}", $_POST['pnum'])) {
or
if (is_numeric($_POST['pnum'])) {

return true even if 'aa' is entered. I assume its seeing the chr(#).

Will any of the numeric data types function in this manner?

Thanks


Matt

 

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

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