Page 1 of 1

a <p>aragraph of <table>s

Posted: Fri Feb 10, 2012 8:13 am
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

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

Posted: Fri Feb 10, 2012 8:51 am
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> )?

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

Posted: Fri Feb 10, 2012 12:04 pm
by chopficaro
lol good point
when i changed the format of the layout it just ended up that way

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

Posted: Fri Feb 10, 2012 12:50 pm
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/

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

Posted: Sat Feb 11, 2012 10:33 am
by chopficaro
problem solved
http://th3rrc.com/