Jump to content

[SOLVED] Explode question


pugboy

Recommended Posts

$s = mysql_real_escape_string($_POST["passwords"]);	
$array = explode("\r\n",$s);

 

AND

 

$s = mysql_real_escape_string($_POST["passwords"]);	
$array = explode("\n",$s);

 

I use foreach to submit it into the database, but it is submitted as one big entry.

 

 

Wait a sec... The newline was being escaped o.O

 

Fixed it, thanks :D

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.