thereaper87 Posted August 9, 2010 Share Posted August 9, 2010 Hello there, I have this snippet of code echo "<td><a href='inc/browse.php?act=view&id=$id'>$title</a></td><td>$author</td>"; } } //close up the table echo "</tr></table>"; This is the code that actually displays the links that go to the listing. The problem is, they all show on one line across the screen. How can it be configured to where the next listing is displayed below the previous one. I tried putting: echo "<br />" But didn't do it. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/210182-getting-array-to-show-on-new-line/ Share on other sites More sharing options...
JasonLewis Posted August 9, 2010 Share Posted August 9, 2010 Hard to say without seeing a little more code. Try it like this: echo "<tr><td><a href='inc/browse.php?act=view&id=$id'>$title</a></td><td>$author</td></tr>"; } } //close up the table echo "</table>"; Quote Link to comment https://forums.phpfreaks.com/topic/210182-getting-array-to-show-on-new-line/#findComment-1096855 Share on other sites More sharing options...
thereaper87 Posted August 9, 2010 Author Share Posted August 9, 2010 Sorry for not showing much code. But you are awesome and it now works! Thanks a mil! Quote Link to comment https://forums.phpfreaks.com/topic/210182-getting-array-to-show-on-new-line/#findComment-1096863 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.