Howdie,
I have w98,apache,php,mysql running. Can put data(url's) into my small db through php, and can retrieve the url's with php, but I have difficulty to put the data(url) into the address-bar of my browser after retrieving.
I now use an index.html with this tag
<a href="http://localhost/data_out.php3?id=2">name_of_link</a>.
So when I click on it, it goes to data_out.php3:
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("data01",$db);
$sql= "select url from links where ID = 2";
$result = mysql_query($sql);
?>
I've tried with header("location:$result"); to
get the retrieved url from the db into the browser addressbar ... no luck, it says it cannot add it since there was already data sent to the browser ... ok ... then I tried to put it in the index.html ... but no luck ...
Can anyone give a clear description ?
Thanks !
Peter