Links

This is a discussion on Links within the PHP General forums, part of the PHP Programming Forums category; Hello.. I searched for an answer on the simple quesiton but I am only finding complex answers... I simply just ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2007
StainOnRug
 
Posts: n/a
Default Links


Hello.. I searched for an answer on the simple quesiton but I am only finding
complex answers... I simply just want to add a link in my database so when
my results display you can see the information.. and when they click the
link it takes them to the webpage of the article. I tried inserting
examplesite.com User sees this text but when the results page shows.. it
doesnt show the hyperlink.. Thank you all very much!



-Darren

Thanks again!
--
View this message in context: http://www.nabble.com/Links-tf3366303.html#a9365950
Sent from the PHP - General mailing list archive at Nabble.com.
Reply With Quote
  #2 (permalink)  
Old 03-08-2007
fedt
 
Posts: n/a
Default Re: [PHP] Links

:|

if i want link 3,

$result = mysql_query("SELECT address FROM db.links WHERE link_id=3");
$foo = mysql_fetch_assoc($result);
echo '<a href="'.$foo['address'].'">this is link 3</a>';

On 3/7/07, StainOnRug <StainOnRug@aol.com> wrote:
>
>
> Hello.. I searched for an answer on the simple quesiton but I am only
> finding
> complex answers... I simply just want to add a link in my database so when
> my results display you can see the information.. and when they click the
> link it takes them to the webpage of the article. I tried inserting
> examplesite.com User sees this text but when the results page shows.. it
> doesnt show the hyperlink.. Thank you all very much!
>
>
>
> -Darren
>
> Thanks again!
> --
> View this message in context:
> http://www.nabble.com/Links-tf3366303.html#a9365950
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
|~ fedt ~|

Reply With Quote
  #3 (permalink)  
Old 03-08-2007
Jake McHenry
 
Posts: n/a
Default Re: [PHP] Links

You have to add the href tags in the html output for the text to be a
link........

in your while statement or whatever your using to obtains the links from the
database already,

instead of just displaying $link_value, change it to

<a href="$link_value">$link_value</a>


Jake

----- Original Message -----
From: "StainOnRug" <StainOnRug@aol.com>
To: <php-general@lists.php.net>
Sent: Wednesday, March 07, 2007 7:19 PM
Subject: [php] Links


>
> Hello.. I searched for an answer on the simple quesiton but I am only
> finding
> complex answers... I simply just want to add a link in my database so when
> my results display you can see the information.. and when they click the
> link it takes them to the webpage of the article. I tried inserting
> examplesite.com User sees this text but when the results page shows.. it
> doesnt show the hyperlink.. Thank you all very much!
>
>
>
> -Darren
>
> Thanks again!
> --
> View this message in context:
> http://www.nabble.com/Links-tf3366303.html#a9365950
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0