a <p>aragraph of <table>s

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

a <p>aragraph of <table>s

Post by chopficaro »

this may be an html question, but there may be no html solution, it may have to be done in php
ive been trying to make a list of videos display from left to right, top to bottom.
take a look at the last line of code on this page for me if you would all be so kind
http://th3rrc.com/videodump/
the line is generated by php after grabbing the videos and their titles from a mysql database with this code

Code: Select all

echo "<table><tr><td class=\"text\"><strong><p>".$row["text"]."</p></strong></td></tr>"."<tr><td class=\"vid\">"."<iframe title=\"YouTube video player\" src=\"http://www.youtube.com/embed/".$row[link]."\" width=\"426\" height=\"240\" frameborder=\"0\"></iframe>"."</td></tr></table>";
as you can see i thought that if i put a bunch of <table>s in a <p>aragraph, it would display this way, but it is not
the videos have to be in tables because they have to have titles
also, the titles are not displaying anymore, they were when i was using another format
i wanted it to all work like a paragraph so that the number of videos being displayed from left to right would be dependent on the width of the window, otherwise i would just use a <table> of <table>s
thanks for all the help over the years guys, i hope we can tackle this one too
artofwork
Forum Newbie
Posts: 7
Joined: Wed Feb 08, 2012 1:28 am

Re: a <p>aragraph of <table>s

Post by artofwork »

You have a clerical error

where it says $row[link] , link should be in double quotes or single quote, and why are you using the dot operator for ( <td class=\"vid\">"."<iframe )
and ( </iframe>"."</td> )?
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

Re: a <p>aragraph of <table>s

Post by chopficaro »

lol good point
when i changed the format of the layout it just ended up that way
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

Re: a <p>aragraph of <table>s

Post by chopficaro »

i fixed part of it, not using tables or paragraphs anymore, im using divs with css float property, but the titles still arent showing up, can anyone tell me why please? they're in the html check out the bottom line of the html here again for me please help me out this is so wierd
http://th3rrc.com/videodump/
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

Re: a <p>aragraph of <table>s

Post by chopficaro »

problem solved
http://th3rrc.com/
Post Reply