ohdang888 Posted May 3, 2008 Share Posted May 3, 2008 what is wrong with this function? function dbclean($string) { $string= mysql_real_escape_string(trim($string)); } i'm not getting any errors, but its not wokring Link to comment https://forums.phpfreaks.com/topic/104010-function-error/ Share on other sites More sharing options...
BlueSkyIS Posted May 3, 2008 Share Posted May 3, 2008 function dbclean($string) { $string= mysql_real_escape_string(trim($string)); return $string; } /// in use $a_string = dbclean($a_string); Link to comment https://forums.phpfreaks.com/topic/104010-function-error/#findComment-532470 Share on other sites More sharing options...
ohdang888 Posted May 3, 2008 Author Share Posted May 3, 2008 would it work if i just used this: function dbclean($string) { mysql_real_escape_string(trim($string)); return $string; } no = sign and then do: $id = dbclean($raw) Link to comment https://forums.phpfreaks.com/topic/104010-function-error/#findComment-532475 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.