View Single Post
  #5 (permalink)  
Old 06-25-09, 01:56 PM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 412
Thanks: 12
Thanked 3 Times in 3 Posts
excellent star as always nico

now whats the best way to stop sql injects ??

ive tried things like

Code:
$profile_text = preg_replace('/\'\'/', '\'', $profile_text);
if ($_POST["text"] != ""){
	$new_profile_text = mysql_real_escape_string($_POST["text"]);
ect what else can i use ??

Thanks
Mike
__________________
Make People Friendly Say " Thanks "
Reply With Quote