$query = "select sid,software from products order by software asc";
$results = mysql_query($query);
while($row = mysql_fetch_array($results, MYSQL_ASSOC)) {
echo '<td align="left"><input type="checkbox" name="software[]" value="'.$row['sid'].'" />'.$row['software'].'</td>';
}
I have two columns and i would like them to appear side by side. But with the above method everything is in its own td.
I want the result to be
<tr>
<td><input type="checkbox" name="software[]" value=""4" />office 2003</td>
<td><input type="checkbox" name="software[]" value="1" />winzip</td>
</tr>
What happens if the results are uneven.... then what happens to the second <td> ?
$results = mysql_query($query);
while($row = mysql_fetch_array($results, MYSQL_ASSOC)) {
echo '<td align="left"><input type="checkbox" name="software[]" value="'.$row['sid'].'" />'.$row['software'].'</td>';
}
I have two columns and i would like them to appear side by side. But with the above method everything is in its own td.
I want the result to be
<tr>
<td><input type="checkbox" name="software[]" value=""4" />office 2003</td>
<td><input type="checkbox" name="software[]" value="1" />winzip</td>
</tr>
What happens if the results are uneven.... then what happens to the second <td> ?