Jump to content

displaying results from an array stored in database


minxie6

Recommended Posts

what is the best way do display the results from a tick box array stored in my_sql?

I am using serialize to store it is this correct?

 

$colourmess=$_POST["colour"];

$colourstring=serialize($colourmess);

$colourstring=htmlentities($colourstring,ENT_QUOTES);

echo $colourstring;

 

but when I read from it i get;

 

a:2:{i:0 s:5:" white" i:1 s:5:" black" }

 

i want a tick box so i can store colours and then display them not the other rubbish aswell,

could someone point me in the right direction as i am shore this must have tutorials but i cant find any?

 

plz help

 

thanks leah

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.