Version: 1.1

Type: Function

Category: Algorithms

License: GNU General Public License

Description: As The Name Says :-)



function  MakeSql($value){
	if ($value =="" && strlen($value)>0){
		$fvalue = "null";
		}
	else {
		$tvalue = str_replace("'",'\'',$value);
		$fvalue = "'";
		$fvalue .= $tvalue;
		$fvalue .= "'";
	}
	return $fvalue;
}
/*
example :
$USERNAME="Snake's";
$USERNAME=MakeSql($USERNAME);
echo $USERNAME;
*/