Hi, I have two questions...
1. I want to display data from my MySQL DB as links. I am pulling all the URLs from my DB and displaying them. How do I make them clickable links? Here is my code, which just displays them as text:
2. How do I make unique referral links for all the members on my site? I want their link to look like this www.example.com/signup.php?ref=1 or something like that. and then i would like some way to track how many people each person refers. Could "ref" be replaced with the field name I used for the auto increment ID of each user? How does this work, i am very confused and have not found any good info on this when googling.
Thats it.. Thanks to anyone who can help!
1. I want to display data from my MySQL DB as links. I am pulling all the URLs from my DB and displaying them. How do I make them clickable links? Here is my code, which just displays them as text:
PHP:
$sql = "SELECT * FROM user_extended";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {
echo "<tr>";
echo "<td>".$row['user_homepage']."</td>";
echo "</tr>";
2. How do I make unique referral links for all the members on my site? I want their link to look like this www.example.com/signup.php?ref=1 or something like that. and then i would like some way to track how many people each person refers. Could "ref" be replaced with the field name I used for the auto increment ID of each user? How does this work, i am very confused and have not found any good info on this when googling.
Thats it.. Thanks to anyone who can help!












