Okay I am pretty new to arrays and this is probally simple
I have a query say and it pulls all information from a database. It creates a new tr row with the information and process's the next one. So when done there is a whole list of say 100 entried lets say. Now what If I wanted to break it up into two rows. Say I wanted to break up all results into two rows. Here is a code sample
[code]
echo <<<EXPRINT
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td align="center" valign="top" width="34%">
<table>
<tr>
<td align="center" class="menubar">
Individual Members
</td>
</tr>
EXPRINT;
(query stuff goes here)
while ( list($mem_firstname,$mem_lastname,$mem_affiliation,$mem_email) = (query handler)) )
{
if ( $mem_email != "" ) {
echo <<< EXPRINT
<tr>
<td align="center" class="$strColor">
<font class="medium">
<a href="mailto:$mem_email">
$mem_firstname
$mem_lastname
</a>
</font>
</td>
</tr>
EXPRINT;
} else {
echo <<< EXPRINT
<tr>
<td align="center" class="$strColor">
<font class="medium">
$mem_firstname
$mem_lastname
</font>
</td>
</tr>
EXPRINT;
}
$strColor = switch_colors($strColor);
}
// Release the database handle
(free database query);
echo <<< EXPRINT
</table>
<br /><br />
EXPRINT;