I have a table that is a varchar. I place numbers in the table aswell as text. Is there a way to see with one is text and which on is a interger?
I tryed using this
if (preg_match("/^[a-zA-Z]+$/",$userinfo[table])) {
echo "string<br>";
} else {
echo "interger<br>";
}
but for both a number and text I got the same thing.... is there a way to get around this?