I see, but what if I want to pass some information from my database to the PHP script?
for example, this is my script :
<?php //beginning of script
$db = mysql_connect("localhost", "myroot", "mypassword");
mysql_select_db("mydatabase",$db);
$result = mysql_query("SELECT * FROM linkdata",$db);
$myrow = mysql_fetch_array($result)
header("Location: %s", $myrow["link"]);
exit();
?>
the browser says something is wrong with the header line I believe. I'm not sure if i'm missing an id number, but say I only have one link in my database.