MySQL Forums
Forum List  »  PHP

Re: single quote in data breaks file load
Posted by: Roland Bouman
Date: July 26, 2005 01:47PM

Just want to add that it might be necessary to use some user defined function as the second argument for array_walk. I dont know how mysql_real_escape_string will react to getting 2 args passed, so:

function my_mysql_real_escape_string($val,$key){
return mysql_real_escape_string($val);
}

..
..
array_walk($data,'my_mysql_real_escape_string');

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.