boemboem Posted November 30, 2008 Share Posted November 30, 2008 Hello all, I'm new to this forum and I like to have some help. I want to place a outcome of a php script in a table, the only thing is that I cant get it working, can somebody explain me what goed wrong? $topics_html .= '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="{$path}viewtopic.php?t={$topic['topic_id']}\">{$topic['topic_title']}</a></td></tr></table>'; Link to comment https://forums.phpfreaks.com/topic/134905-solved-php-in-table/ Share on other sites More sharing options...
gevans Posted November 30, 2008 Share Posted November 30, 2008 $topics_html .= '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="'.$path.'viewtopic.php?t='.$topic[topic_id]}'">'.$topic[topic_title].'</a></td></tr></table>'; Link to comment https://forums.phpfreaks.com/topic/134905-solved-php-in-table/#findComment-702508 Share on other sites More sharing options...
Mchl Posted November 30, 2008 Share Posted November 30, 2008 Or $topics_html .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><a href=\"{$path}viewtopic.php?t={$topic['topic_id']}\">{$topic['topic_title']}</a></td></tr></table>"; (You used '' instead of "") Link to comment https://forums.phpfreaks.com/topic/134905-solved-php-in-table/#findComment-702516 Share on other sites More sharing options...
boemboem Posted November 30, 2008 Author Share Posted November 30, 2008 kewl thank you all for the quick reply Link to comment https://forums.phpfreaks.com/topic/134905-solved-php-in-table/#findComment-702620 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.