Jump to content

[SOLVED] Need help with Logic


CerealBH

Recommended Posts

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) 
{
if (($row == 6) or ($row == 12) or ($row == 18) or ($row == 24) or ($row == 30) or ($row == 36))
{
echo '</tr>';
echo '<tr>'; 
}
echo '<td>';
echo '<a id="RIDER" href="' . $this->addurl . $line['f_id'].  '" target="_blank ">'.'<img src="'. $this->addbutton .'"/>' . '<a/>';
echo '</td>';
$row++;
}

after outputting 6 times i want a new row, i could do it with a for loop, but it would fuck up the information im getting from my db, and there has to be a better what then that horrible string of logic i have. any ideas?

Link to comment
https://forums.phpfreaks.com/topic/89227-solved-need-help-with-logic/
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.