Jump to content

Urgent Quick PHP Help -


Gayner

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/169893-urgent-quick-php-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.