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? Quote Link to comment 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 Quote Link to comment 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.