| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Add Link to Echo Result|
php database query
Example 1 below works:
I need to make the title linkable to the page url. I'm probably putting the ' and " in the wrong places for the link part.
Example 2 I've added the url code but does not work:
echo "<p><h2><a href=http://www.example.com/".$results['url'].".$results['title']."</a>"</h2>".$results['shortdesc']."</p>";
Any help would be appreciated. Thx.
A got a response from another forum so I'll just add that below since it worked.
echo '<h2><a href="http://www.example.com/' . $results['url'] . '">' . $results['title'] . '</a></h2><p>' . $results['shortdesc'] . '</p>';
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved