I'm a real newbie on PHP, but i want to know as much as i can, so here's my first problem(it wont be the last, i assure you)
I have this script:
This is the result:
Name: Herminio
Location: Porto
Email: <my email>
Homepage: <my site>
Comentário: Testando.
i want the text after homepage to show as link but i cant manage how to do that.
Please help me.
Thanks in Advance
I have this script:
Code:
<?php
$db = mysql_connect("localhost", "********", "*********");
mysql_select_db("guestbook",$db);
$result = mysql_query("SELECT * FROM guestbook",$db);
printf("Name: %s<br>\n", mysql_result($result,0,"NAME"));
printf("Location: %s<br>\n", mysql_result($result,0,"LOCATION"));
printf("Email: %s<br>\n", mysql_result($result,0,"EMAIL"));
printf("Homepage: %s<br>\n", mysql_result($result,0,"URL"));
printf("Comentário: %s<br>\n", mysql_result($result,0,"COMMENTS"));
?>
This is the result:
Name: Herminio
Location: Porto
Email: <my email>
Homepage: <my site>
Comentário: Testando.
i want the text after homepage to show as link but i cant manage how to do that.
Please help me.
Thanks in Advance