Current location: Hot Scripts Forums » Programming Languages » PHP » Hyperlinks problem


Hyperlinks problem

Reply
  #1 (permalink)  
Old 03-16-04, 06:20 AM
fraggle fraggle is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Hyperlinks problem

I am working on a search/results page for my site, I have the functionality there but with one slight problem. I have 2 fields in my DB, email and web, how do I return a hyperlink to the results page instead of plain text, is this done in PHP or SQL? or can it be done...............?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-16-04, 11:38 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
it's done with pure HTML
PHP Code:

while ($result mysql_fetch_assoc($fetch)) {

  echo
'<a href="'.$result['link'].'">'.$result['web'].'</a><br />';

well, it's not that pure tho
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 03-16-04 at 11:44 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-16-04, 12:03 PM
fraggle fraggle is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks

Thanks, I will try that, I was going to try load html in the fields o nthe db........
I am new to all this, so please excuse the naivety, I'm having fun though!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Include Problem DAL Perl 3 11-20-04 08:45 AM
php in linux problem usman PHP 6 05-15-04 12:57 PM
User Authentication and Session problem!!! askme PHP 1 02-06-04 10:10 AM
file download problem ukyankee Perl 6 10-04-03 11:39 PM
jpGraph axis labeling problem Squeezer PHP 2 08-20-03 08:53 AM


All times are GMT -5. The time now is 09:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.