Forum Moderators: coopster
I want to check that the variable 'show' is a number no larger than 50, I decided to use the eregi function:
if(eregi('^[0-50]$', $show)) { }
the function ignores the 0 of 50 and checks that the variable 'show' is no larger than 5 instead, how do I fix this?
if($show < 51 && preg_match('/^[0-9]/', $show)) { }
*edit* you replied to yourself while I was writing this