I'm fairly new to PHP.
I'm trying to validate PHP variables before updating a MySQL table. Mainly to establish decimal pointys, currency, etc. I've checked on the w3schools.com site and found the following refernce to using the built-in PHP filter functions. Except, when I run them, I get an error message - "Call to undefined function filter_var() in....."
. It seems that I can't get any of the preloaded functions to work but any custom functions that I write do. Is there something wrong with my code or is there something wrong with my ISP's PHP installation?
Following is the code that is placed in the body of my test page:
$int = 123;
echo("Integer is not valid");
echo("Integer is valid");