Page 1 of 1
A HREF + DATABASE VALUES
Posted: Thu Nov 02, 2006 5:47 pm
by bconnor
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>";
Posted: Thu Nov 02, 2006 7:07 pm
by volka
Have you tried it?
Re: A HREF + DATABASE VALUES
Posted: Thu Nov 02, 2006 7:18 pm
by RobertGonzalez
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>";
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?
PS Please, when posting code, even in small amounts, wrap that code in the appropriate bbCode tags. Thanks.