[solved] if condition does not equal INT
Posted: Wed Sep 21, 2005 12:43 am
How do you do that?!

I've got a database field with text in it which is now slowly being replaced by an integer reference instead.
What I'm trying to do is this kind of error checking:
So, how does one read a value and determine if there's text or an integer in there?
bizzarro!!

Rob
I've got a database field with text in it which is now slowly being replaced by an integer reference instead.
Code: Select all
IE: "fluffy shampoo" is now "1".Code: Select all
if field data IS NOT an INT
{
do stuff with a function that expects an INT
}
else
{
echo "this is old data";
}So, how does one read a value and determine if there's text or an integer in there?
bizzarro!!
Rob