hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Web Design and Content Tutorials : concatenation conundrum!!
Reply

Web Design and Content Tutorials Tutorials on web design and content.
Forum Jump

concatenation conundrum!!

Reply Post New Thread In Web Design and Content Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2004, 01:59 PM
jlee2301 jlee2301 is offline
Newbie
 
Join Date: Jul 2004
Posts: 14

concatenation conundrum!!


Hi

I have a form where the user enters a url for their personal page in a text box. When this is sent to the database, I want to then be able to show the entry as a hyperlink in the table so users can click on the word 'contact' but to do this, somehow the <a href="">contact</a> will need to be added. The url that the user initially entered would go between the "".

Hope this is clear - thanks

Reply With Quote


Sponsored Links
  #2  
Old 08-14-2004, 11:44 AM
KeithMcL KeithMcL is offline
Junior Guru Wannabe
 
Join Date: Dec 2000
Location: Dublin, Ireland
Posts: 37
When you are retrieving the info from the database and displaying it you simply tell PHP to add the hyperlink tag around the URL info. For instance:

PHP Code:
$query "SELECT url FROM tablename";
$result mysql_query($query);
while (
$row mysql_fetch_array($result) ) {
    echo 
"<a href='" .$row['url']. "'>" .$row['url']. "</a>";


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?