single values into sql field


Posted on 16th Feb 2014 07:03 pm by admin

i have a form which i want the user to able to select multiple answers. But i want the answers to be stored into a single field on the mysql table in the back end. e.g

the user may select red + blue + green and so in the field i want it to show red,blue,green.

is it best to list the options in like an array or how do i do this as i dont do much PHP and so am a bit rusty.

hope you can help

No comments posted yet

Your Answer:

Login to answer
217 Like 11 Dislike
Previous forums Next forums
Other forums

losing variables between php brackets
Hi

have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mys

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all

Batch Related Pricing
Hi, I need some clarity on the batch related pricing

For example the following are the b

Warning: Cannot modify header information - headers already sent by (output sta
Warning: Cannot modify header information - headers already sent by (output started at /home/praylif

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

PHP url branch??
Functionally, using PHP, I'm doing a test of login input submitted by a user via an html form in a f

Session problem?!?
Hello All! I am very new to the php world but I am working on fixing things that a previous programm

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

this code is not working????
it says this error.. Warning: Division by zero in ..

the variables are correct, so why is th

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash