Jump to content

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

i done that thank you!!

but how do i display it?

at the moment i just get "array"

i need to display just the colour's from it, not the array infomation?

can this be done?

 

sorry for beeing so stupid but i am trying to learn

 

leah x

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.