Jump to content

Serialize array


EchoFool

Recommended Posts

I need help with a serial array feature.

 

At the moment i have:

$items=serialize($_POST['array']); //takes the data from a post operation...

 

But i want to add a mysql_real_escape_string safety to it but how would it be written? do i have to put the serial in brackets after the mysql function ?

$items=mysql_real_escape_string(serialize($_POST['array']));  < would that work ?

Link to comment
https://forums.phpfreaks.com/topic/91270-serialize-array/
Share on other sites

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.