I try to make my question clearly.
I want to display all the employer infor in one table on the web page. The data traced from MYSQL database.
Every employer has a status(0 or 1), but I want my web page displays it as two columns <th> named active and inactive and <tr><tb>display as two radio botton in one row for active and inactive.
does it make the question clearly?
I copy the code I have done so far, but it doesn't work for the radio botton.
while
(
$myrow = mysql_fetch_array($query_result))
{
$empID = $myrow["empID"];
$empf_name=$myrow["empf_name"];
$empl_name=$myrow["empl_name"];
$emp_passwd=$myrow["emp_passwd"];
$emp_email =$myrow["emp_email"];
$emp_rank=$myrow["emp_rank"];
$emp_department=$myrow["emp_department"];
$creatDate =$myrow["creatDate"];
$status=$myrow["status"];
//echo $query;
echo "<tr><td><a href=\"employerdetail.php\">User Details</a></td>
<td>$empID</td>
<td>$empf_name</td>
<td>$empl_name</td>
<td>$emp_passwd</td>
<td>$emp_email</td>
<td>$emp_rank</td>
<td>$emp_department</td>
<td>$creatDate</td>";
//<!-----Active & Inactive------>
if($status==1)
{
echo "<td><input type='radio' name=status checked></td>
<td><input type='radio' name=status> </td>";
}
else
{
echo "<td><input type='radio' name=status></td>
<td><input type='radio' name=status checked></td>";
}
echo "</tr>";
# make sure that we recieved some data from our query
$num_of_rows = mysql_num_rows ($query_result);
}//end while
Please help me,
🙁