Zend - The PHP Company




Code Gallery: bto


Avoid SQL injection  

Type: code fragment
Added by: bto
Entered: 19/08/2004
Last modified: 08/12/2003
Rating: **** (4 votes)
Views: 11237
This is a function which will format the passed string depending of it's specified to be a number or a string, in order to avoid problems with SQL injections in scripts.


Random alphanumeric password  

Type: code fragment
Added by: bto
Entered: 18/08/2004
Last modified: 08/12/2003
Rating: **** (3 votes)
Views: 4878
A simple function which returns an autogenerated random alphanumerical password with the specified length.




Search