joemamahunt Posted September 11, 2007 Share Posted September 11, 2007 Sorry for the very poor subject, no clue how I would be able to say this in few words. I would like to take this code: $row['body'] .= '... '; And put in the following after the three dots: <a href="', $news['href'], '">[more]</a> So, something like this: $row['body'] .= '... <a href="', $news['href'], '">[more]</a>'; I'd need to insert \'s for the single quotes, but that's not the problem. Problem is, the link will be something like this: http://', $news[href], ' What's the best way to make it work? Thanks. Link to comment https://forums.phpfreaks.com/topic/68784-solved-php-in-php-in-php/ Share on other sites More sharing options...
hackerkts Posted September 11, 2007 Share Posted September 11, 2007 It's '. and .' not , Link to comment https://forums.phpfreaks.com/topic/68784-solved-php-in-php-in-php/#findComment-345770 Share on other sites More sharing options...
Aeglos Posted September 11, 2007 Share Posted September 11, 2007 <?php $row['body'] .= '... <a href="'.$news['href'].'">[more]</a>'; ?> Unless the commas were intentional (which makes no sense ). Link to comment https://forums.phpfreaks.com/topic/68784-solved-php-in-php-in-php/#findComment-345774 Share on other sites More sharing options...
joemamahunt Posted September 11, 2007 Author Share Posted September 11, 2007 Ahhh.. Silly me. Thank you. Link to comment https://forums.phpfreaks.com/topic/68784-solved-php-in-php-in-php/#findComment-345787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.