Well after many hours of writting a "sanitizing " function I have discovered I do not have stri_replace installed or something. I don't really want to search for WHERE, WhERE, WheRE... and so on, just to remove WHERE for MySQL input, does anyone have an idea how I could get around it?
I was using ronverdonk's code:
[PHP]str_ireplace( array(" ", "/",",","'","*"," and","or","wher e"),'', 'WHERE This IS a TeSt.' ) );[/PHP]
I was using ronverdonk's code:
[PHP]str_ireplace( array(" ", "/",",","'","*"," and","or","wher e"),'', 'WHERE This IS a TeSt.' ) );[/PHP]
Comment