473,386 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP and ceckboxes

Dear All, i have a db table that contains 1s and 0s and i need to show
back these values with checkboxes, ex: if i have a table called t1 that
contains c1 c2 and c3 and all have values of 1, now i need to display 3
checkboxes which will be checked because the values in the db is 1. if
any of the values is 0 then i shall display the associated checkbox as
unchecked, i now i can do that by simply checking the returned value
from the database by an if statement, but i need a smarter way, plz
reply back with explanation cz i'm just a beginner thnx

May 2 '06 #1
1 1076
Meena wrote:
Dear All, i have a db table that contains 1s and 0s and i need to show
back these values with checkboxes, ex: if i have a table called t1 that
contains c1 c2 and c3 and all have values of 1, now i need to display 3
checkboxes which will be checked because the values in the db is 1. if
any of the values is 0 then i shall display the associated checkbox as
unchecked, i now i can do that by simply checking the returned value
from the database by an if statement, but i need a smarter way, plz
reply back with explanation cz i'm just a beginner thnx


What have you tried so far?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
AccessIdiot
by: AccessIdiot | last post by:
Hello all, A while ago I got a lot of help on building a bunch of forms tied to a somewhat complicated db. Now I'm back with a search form question. The guys that I built the db for - they...
3
by: raamay | last post by:
hey experts, please advise me what is the best way to save multiple checkboxes value in a database. I have 6 checkboxes and i came across storing the values in a single column of a table which i dont...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.