CerealBH Posted February 3, 2008 Share Posted February 3, 2008 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 More sharing options...
pocobueno1388 Posted February 3, 2008 Share Posted February 3, 2008 Take a look at this post: http://www.phpfreaks.com/forums/index.php/topic,95426.0.html Link to comment https://forums.phpfreaks.com/topic/89227-solved-need-help-with-logic/#findComment-456906 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.