Porkie Posted July 1, 2009 Share Posted July 1, 2009 echo '<table><tr>'; echo '<td>'; echo "<a href='http:///Newdirectory/video.php?id={$videos[$c]['id']}'><img src='http://img.youtube.com/vi/{$videos[$c]['videoid']}/default.jpg' width='120' height='100'</a><br><a href='/Newdirectory/video.php?id={$videos[$c]['id']}'>{$videos[$c]['name']}'</a>"; } } echo '</td>'; echo '</tr></table>'; how come this isnt making the data go in rows? forgive my sillyness lol ? cheers Link to comment https://forums.phpfreaks.com/topic/164399-silly-question/ Share on other sites More sharing options...
Bendude14 Posted July 1, 2009 Share Posted July 1, 2009 well its only one table row you have their with a break in the middle of it.... I think there is a problem with your quotation marks here though... {$videos[$c]['id']}'>{$videos[$c]['name']}'</a>"; should be {$videos[$c]['id']}'>{$videos[$c]['name']}</a>"; Link to comment https://forums.phpfreaks.com/topic/164399-silly-question/#findComment-867180 Share on other sites More sharing options...
Porkie Posted July 1, 2009 Author Share Posted July 1, 2009 so what would i do mate ? cheers Link to comment https://forums.phpfreaks.com/topic/164399-silly-question/#findComment-867207 Share on other sites More sharing options...
Bendude14 Posted July 1, 2009 Share Posted July 1, 2009 This is the basic idea for creating rows using a table.... <table> <tr><td>Row one info here</td></tr> <tr><td>row two info here</td></tr> <tr><td>Row three info here</td></tr> </table use a single quote to start your echo and then doubles for the href and src properties, this should solve any quote issues preventing the single quotes in your array keys from causing any problems. Link to comment https://forums.phpfreaks.com/topic/164399-silly-question/#findComment-867212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.