php - MySQL Comma data into array, then selected

680

So I have this data in a row in my database (MySQL), I can get it from there into an array, but now I need to have it selected if they match.

For exmaple:

Database information: No Incentives, No Twitter, No Youtube, No SMS, No Email, No PPC

Now I have an HTML that will check if they match but I am having issues doing that, how would you go about that?

Thanks.

For some reason I always have trouble with comma data.

313

Answer

Solution:

Without details about what you are actually doing or how you are transforming the output of your SQL query in php... simple put the output of your HTML input checkbox requires an attributechecked="checked" for the ones you want checked by default.

People are also looking for solutions to the problem: php - API not resolving on own site

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.