Gayner Posted August 12, 2009 Share Posted August 12, 2009 The problem is it's not doing 3column's each row.. $max_cols = 3; $col_num = 0; $this->output .= '<table width=100%></tr><tr valign=top>'; // THERE IS NO OPENING TABLE TAG, SO ADDING THIS SHOULD FIX THAT while( $r = $DB->fetch_row() ) { $col_num++; $this->output .= $this->do_html_row($sess) if ($col_num == $max_cols) { $this->output .= '25</tr><tr>'; $col_num = 0; } $this->output .= '</table>'; // THERE IS NO CLOSING TAG, ADDING THIS SHOULD FIX THAT. } AND $this->output .= $this->do_html_row($sess) is a function called "do_html_row" and it spits out return $this->html->show_row($sess); which my HTML FOR Show_row is: <td><fieldset><legend>{$session['member_name']}</div></a></span></legend> <table class="ftbt"> <tr><th>Last Click: {$session['running_time']}</th></tr> <tr><td class="desc bc1"> {$session['cun1']} {$session['jesus2']} {$session['jesus3']} {$session['msg_icon']} {$session['jesuscash']} {$session['jesus1']} <img src="images!!/p.gif" width="140" height="0"> </td> </tr></table><div class="foot desc">{$session['where_line']}</div> Quote Link to comment https://forums.phpfreaks.com/topic/169893-urgent-quick-php-help/ Share on other sites More sharing options...
JonnoTheDev Posted August 12, 2009 Share Posted August 12, 2009 Use this and ammend as necessary. http://www.wallpaperama.com/forums/php-how-to-create-make-multiple-table-columns-from-mysql-database-php-t605.html Quote Link to comment https://forums.phpfreaks.com/topic/169893-urgent-quick-php-help/#findComment-896305 Share on other sites More sharing options...
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.