Hi,
I have the following piece of code. I am trying to get the results to display in 4 columns.....and unlimited rows.
Basically, I am getting the results.....in one long row....with unlimited columns.....
Can you please tell me what I am missing to accomplish this?
<?php
require('connect.php');
require('config.php');
// Below will display listings for specific ID/// //
$query="SELECT * FROM agents where office_name='Company'";
$result = mysql_query($query) or die("Query failed: ". mysql_error());
$i=0;
echo "<table width='0' align='center' cellspacing='2' cellpadding='2'>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
{
if ($i%4==0)
{
}
print"<td width='110'><a href='agent_bio_pop.php?Id=$line[Id]' onclick=\"window.open(this.href, 'popupwindow', 'width=700,he$
echo " <td width='1'></td>\n";
echo " <td width='5' bgcolor='#003399'></td>\n";
$i++;
}
echo "</table>\n";
/* Free resultset */
mysql_free_result($result);