How to Make Data as hpyperlink..

Hi,
I retrive data from database and i want to make that data hyperlink.
so that if we click on that link it open some website related it.
pls give full database and front end code info.

thanks in Advance.

Did you actually go and google anything first? Or read a few tutorials? No one is just going to hand you code you need to at least try for yourself first.

If you really retrieved data from the database already show some codes

small hint
[php]
$query = "SELECT field_name1 FROM table_name WHERE something = ‘$something’ ";
$result = mysql_query($query) or die("Query didnt success ".mysql_error());

if (mysql_num_rows($result) > 0)
{
$row = mysql_fetch_assoc($result);
echo “<a href=’#’”.$row[‘field_name1’]."";
}
[/php]

I guess that should give you a hyperlink on the data result i only gave you what you needed because you said you already retrieved data

Wilson B.

lol wilson382 will :stuck_out_tongue:

I shoulda said no one with experience or somethin along those lines. Personally, unless they’re asking some really difficult question that I think they won’t be able to work it out easily, I won’t give them any code till they try. And even then i’m more likely to give them basic starter code to see if they can work it out.

Sponsor our Newsletter | Privacy Policy | Terms of Service