Hi,
I'm having problem with a function that I'll use to validate user input
before passing it to MySQL. For strings, I want to make sure that they
aren't to long, so I have written this function:
function secure_string($unsafe_string, $max_length = -1, $errormessage =
Too many characters. ) {
Hi,
I'm having problem with a function that I'll use to validate user input
before passing it to MySQL. For strings, I want to make sure that they
aren't to long, so I have written this function:
function secure_string($unsafe_string, $max_length = -1, $errormessage =
Too many characters. )
What is this mess that you have here :-)
I don't have a clue! :) It looks allright here, when I press send.
How exactly are you calling the function when no $max_length is passed?
If you're doing something like:
secure_string($string, '', 'error msg');
Just secure_string($string);. In that
On Wednesday 06 August 2003 01:06, anders thoresson wrote:
I'm having problem with a function that I'll use to validate user input
before passing it to MySQL. For strings, I want to make sure that they
aren't to long, so I have written this function:
What is this mess that you have here :-)
4 matches
Mail list logo