How to add more then one Anti Sql
When you add the anti sql Function/Scipt is you have on the post antisql($_POST that are you ok but then if you add another anti sql scipt what do you do to antisql($_POST just leave or what becasue i dont think it works when i add 2 i only think one does help me please
Re: How to add more then one Anti Sql
You should only need sanitize data with one function call; but, if you want to wrap something twice (Pointless), then:
Code:
function2( antisql( $_POST['user'] ) );
Re: How to add more then one Anti Sql
Quote:
Originally Posted by
gWX0
You should only need sanitize data with one function call; but, if you want to wrap something twice (Pointless), then:
Code:
function2( antisql( $_POST['user'] ) );
can you show me how to by the way its P-Team who hacks me for no reason
Re: How to add more then one Anti Sql
can't you just put it in the same function as another "$sql=" ?
Re: How to add more then one Anti Sql
Quote:
Originally Posted by
rhys918
can you show me how to by the way its P-Team who hacks me for no reason
Sigh, just use this function:
Code:
function antisql( $data )
{
$data = str_replace( "'", "''", $data );
$data = htmlentities( $data );
return( $data );
}
XSS and SQL injection, for the most part, isn't possible in this setup; unless your queries don't use quotes (I haven't seen anyone do that yet, as it's pointless), or unless you take data from the database and enter that as an attribute in an HTML tag, and said data is modifiable by the user, then you're safe.