Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
A Href + Database Values
Old 11-02-2006, 06:50 PM A Href + Database Values
Junior Talker

Posts: 3
Trades: 0
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");."\">mysq l_result($result,0,"second");</a>";
bconnor is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-02-2006, 07:15 PM Re: A Href + Database Values
Extreme Talker

Posts: 217
Trades: 0
Theres probably other ways to do this, but heres how i do it:

PHP Code:
$result = mysql_query("sql stuff here");
$rows = mysql_fetch_array($result);

?>
<a href=<?php echo $rows['value']; ?> > <?php echo $rows['value2']; ?>  </a>
Slick Nick is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A Href + Database Values
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15488 seconds with 12 queries