solid2005 Posted October 28, 2012 Posted October 28, 2012 <?php echo ' <table width="100%" align="center" cellpadding="5" cellspacing="0" class="themain"> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td colspan="2" align="left" class="topp1"><center><strong>Logs</strong></center></td> </tr> </table></td> </tr> </table> <table width="100%" align="center" cellpadding="5" cellspacing="0" class="table_list"> <tr> <td align="left" class="title">#</td> <td align="left" class="title">account</td> <td align="left" class="title">username</td> <td align="left" class="title">Date</td> </tr>'; $count=0; while (count($viewhistory) >= $count){ $count++; $tr_color = ($count % 2) ? '' : 'even'; echo ' <tr class="'.$tr_color.'"> <td align="left" class="content">'.htmlspecialchars($count).'</td> <td align="left" class="content">'.htmlspecialchars($viewhistory[1]->serial).'</td> <td align="left" class="content">'.htmlspecialchars($viewhistory[2]->amount).'</td> <td align="left" class="content">'.$this->formatDateTime($viewhistory[3]->date_create).'</td> </tr> '; $viewhistory->MoveNext(); } if($count == '0'){ echo '<tr> <td align="center" colspan="6"><em>No transactions found.</em></td> </td>'; } echo '</table>'; ?> how to loop on table? only single selected. Quote
Valiente Posted October 28, 2012 Posted October 28, 2012 What do you mean by "only single selected"? Quote
Question
solid2005
how to loop on table? only single selected.
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.