|
Posted by MattMika on 10/13/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
[Back to original message]
|