I'm trying to echo a link, with one values from the database as the link itself, and the other the link name, how would i do that? Is it something like ...
echo "<a href=\"".mysql_result($result,0,"first");."\">mysql_result($result,0,"second");</a>";
A HREF + DATABASE VALUES
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: A HREF + DATABASE VALUES
This is something that is covered in most tutorials. But before you rush out and grab a book or download a tutorial, why not try it? What is the worst that could happen if something went wonky?bconnor wrote:I'm trying to echo a link, with one values from the database as the link itself, and the other the link name, how would i do that? Is it something like ...
Code: Select all
echo "<a href="".mysql_result($result,0,"first");."">mysql_result($result,0,"second");</a>";
PS Please, when posting code, even in small amounts, wrap that code in the appropriate bbCode tags. Thanks.