Here's the code I've been trying to use:
To put information into the database:
$variable=array ("1","2","3");
$newarray=serialize($variable);
mysql_query("INSERT INTO table(col1) VALUES ($newarray)");
To take it out
mysql_query("SELECT * FROM table WHERE anothervalue=' ');
$anewarray=array():
$result=mysql_result($result,0,"col1");
$anewarray=unserialize($result);
print ($anewarray[0]);
It will not work