Apologies for the confusion.
What I've been stuck on is the formatting.
<table>
<?php do { ?>
<tr>
<td><input type="checkbox" name="commercial4[]" value="<?php echo $row_xrow['ComID']?>">
</td>
<td><?php echo $row_xrow['County']?></td>
</tr>
<?php } while ($row_xrow = mysql_fetch_assoc($xrow)); ?>
</table>
xrow is already defined higher on the page, from a SELECT.
$xrow = mysql_fetch_array($result);
What I was trying to do is come up with a checkbox repeat region based on zip codes, which relies on both a series of code higher on the page and (2) include files -- which would display check boxes within a given range of a zip code.
Where you see "RIGHT HERE" the code presently uses printf to bring up what I need, but not as checkboxes. ex: ABC COunty, 10 mi'.s (from entered zip)
I was trying to convert this line into the checkbox repeat region. Mainly for those residing in counties that are ner state borders, to call up counties within the bordering states.
I thought this was mainly a format question since the 'do while' above already works. Only can't get it to display within the "RIGHT HERE"
To simplify things, maybe I can settle with formatting this 'do while' in three relatively equal columns that would be only for a single state, and to do this using:
<?php $num_rows = mysql_num_rows($Recordset1);
echo "$num_rows Rows\n";?>:
Along with a remainder?
So how might the "do while" be formatted into three columns?
//these are "County" listings within each state, so each result will be a different # results//