Now I figured out how to add header and footer to this, but what I cant figure out what I am doing wrong is how to turn the data into a link.
$fp = fopen("test.html", "w");
fwrite($fp, $header);
$q = "select url from faver";
$r = mysql_query($q);
while($data = mysql_fetch_row($r)) {
fwrite($fp, $data[0]. "<BR>");
}
fwrite($fp, $footer);
fclose($fp);
I know it is in this, but I can not figure it out.
fwrite($fp, $data[0]. "<BR>");
Can anyone help me out here...