I am using this code to add a checkbox to each row of a table. But, the checkbox shows up as a textbox with the ClientID
in it:
while ($row = mysqli_fetch_array($query)) {
$cid=$row['ClientID'];
echo '<tr>
<td>'.$row['ClientID'].'</td>
<td><input type=\"checkbox\" name=\"checkbox'.$cid.'\" value='.$cid.'></td>
<td>'.$row['FirstName'].'</td>
<td>'.$row['LastName'].'</td>
<td>'.$row['Email'].'</td>
<td>'.$row['KDWP_Nbr'].'</td>
<td>'. date('F d, Y', strtotime($row['DOB'])) . '</td>
<td>'.$row['DriverLicenseNbr'].'</td>
<td>'.$row['PrimaryPhone'].'</td>
<td>'.$row['SecondaryPhone'].'</td>
<td>'.$row['Address1'].'</td>
<td>'.$row['Address2'].'</td>
<td>'.$row['City'].'</td>
<td>'.$row['State'].'</td>
<td>'.$row['ZipCode'].'</td>
<td>'.$row['ClientNotes'].'</td>
</tr>';
Why wouldn't it show up as a checkbox?