943,172 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 102
  • PHP RSS
Aug 30th, 2010
0

PHP Line Break within an outputted table

Expand Post »
Good afternoon,

Instead of starting a new row every time I have new data, I want to simply put a line break.

I have put in <br> but it makes the page too long as it yields a break each time and not just the times that it has data. Any thoughts?

So you can see, I want to put each player on a different line, but dont want a table line in between.

http://www.cornwallfantasyhockey.com/cfhl/trades2/
Last edited by ceeandcee; Aug 30th, 2010 at 5:32 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
ceeandcee is offline Offline
72 posts
since Aug 2010
Aug 30th, 2010
0
Re: PHP Line Break within an outputted table
It seems that you need to check if you have any data before you add another line break. If you currently output the line break before you output the fields, you need to create the output line as a variable and then check the length to determine if it has any data.
Reputation Points: 210
Solved Threads: 228
Nearly a Posting Virtuoso
chrishea is offline Offline
1,389 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: problem in modifying data in my form
Next Thread in PHP Forum Timeline: need a way to add a multi-selection box to an update form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC