Jump to content

Cleaning Incoming


Millar

Recommended Posts

I am using this function to excape my strings in the best way.

[code]<?php

function sql_quote($value)
{

if(get_magic_quotes_gpc())
{$value = stripslashes($value);}

if(function_exists("mysql_real_escape_string"))
{$value = mysql_real_escape_string($value);}
else
{$value = addslashes($value);}

return $value;

}

?>[/code]

Orio.
Link to comment
https://forums.phpfreaks.com/topic/24811-cleaning-incoming/#findComment-113010
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.