I placed the code in it's space, and it's counting the proper number of records for the recordset, but the display is either blank or filled with regular text. Here is the code used:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" width="50%"><ul>
<?
$sqlcount = mysql_query("SELECT section, title, firstname, lastname, telephone FROM smmbc_directory WHERE section = '1'");
$tcount = mysql_num_rows($sqlcount);
$rcount = $tcount/2;
$rcount = sprintf("%.0f", $rcount);
//echo $tcount."<br />";
//echo $rcount;
$cresult = mysql_query("SELECT section, title, firstname, lastname, telephone FROM smmbc_directory WHERE section = '1'");
global $i;
while ($cdata=mysql_fetch_array($cresult)) {
printf("<li>$cdata['title'] $cdata['firstname'] $cdata['lastname']<br /> $cdata['telephone'] $cdata['email']</li>\n");
$i++;
if ($i==$rcount) { echo "</ul></td><td valign=top><ul>"; }
}
?>
</ul>
</td>
</tr>
</table>
What have I missed?
Thanks!!!!