radio button

Hi there!!
I making an attendance list for my school assignment.
So my question is:
how do you set a radio button for each name retrieve from the database?

2 Tables:
TablesA: Store all the name list
TablesB: Store the attendance(Present/ Abesent)

Software i using is
notepad++
xampp

query your names and attendance

[php]foreach($row as $input){
echo ’ ‘.$input[‘name’].’’;
echo ’ ‘.$input[‘attendance’].’’;
}[/php]

I’m guessing you already have all the database basics.

The example for how to display the names from a database works, but the value should be the person’s id. Then you would pass the id to the attendance table to update the information.

I prefer a solid string as opposed to concatenating the variables.

I agree on both points. On the concatenation, you are also saving four characters on each variable if you just use brackets{} to enclose it and are less prone to mistakes.

Sponsor our Newsletter | Privacy Policy | Terms of Service