yangkai9999 Posted November 11, 2009 Report Share Posted November 11, 2009 hello,I have a numeric field in a MySQL table.I would like to built a PHP code to check the entered value. If the value is not numeric then generate a message for user. I want to use the function to instate of MySQL error message. Is there a way to get this function done?Thank you, Link to comment Share on other sites More sharing options...
jeffman Posted November 11, 2009 Report Share Posted November 11, 2009 Use this before passing the data to my_sqlhttp://us2.php.net/manual/en/function.is-numeric.php Link to comment Share on other sites More sharing options...
yangkai9999 Posted November 11, 2009 Author Report Share Posted November 11, 2009 Use this before passing the data to my_sqlhttp://us2.php.net/manual/en/function.is-numeric.php Thank you, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now