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

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Material Issuing for receiving batch
Dear All experts in MM/ PP,

Material issuing from main stores to factory is currently usi

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

Specific name typed, specific image shown on html page
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploade

Is it a good practice to store user info. in sessions?
I am making a user class for my script which stores all the user information in sessions. It takes u

Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment

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