does anyone know how i can make a link in php?
it has to be in a If, else condition like:
if ($row["username"]==$username) { GO TO SITE1 }else{ GO TO SITE2 }
my best bet is:
if (condition == x){ Header("Location: file1.php"); } else { Header("Location: file2.php"); }
Does that work for you?
Beth
This would work also
$username1 = $row["username"] if ($username1 == $username) { print "<a href=http://test.com/>Link 1</a>"; }else{ print "<a href=http://test2.com/>Link 2</a>"; }
Originally posted by ecg my best bet is: if (condition == x){ Header("Location: file1.php"); } else { Header("Location: file2.php"); } Does that work for you? Beth [/B]
Originally posted by ecg my best bet is:
Beth [/B]
Thanx! it works!