PDA

View Full Version : PHP, While loop, Checkboxes are checked or not???


jdk10
07-28-2005, 05:56 AM
I have a small question for anyone who has advanced knowledge with PHP. What I have is a page that reads a database table and displays a certain # of check boxes and names them "city" # where # is the id#(auto increment when inserted). Right now I have 7 cities in the table so my WHILE statement loops 7 times. Inside my WHILE statement I have an IF statement that checks to see if($city1) then output. The problem I am having is that it loops the 7 times and outputs all 7 no matter if they are checked or not.


Problem solved through PM. Thanks.

monkey64
06-18-2009, 01:50 PM
Jdk10.
What use is it to the Forum Community when you put "Problem solved through PM. Thanks."
Well I'm very pleased for you, perhaps you could share the answer?