Jump to content

silly question ?


Porkie

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.