php mysql - how to i echo a url from database into a header function?

DubStylee

New member
How do I echo a url from a sql database into a webpage that has a header function/command.

at the moment i use: <?php header ("Location:main.php"); ?>
however i would like to get the page name from the database instead of writing it in.

Thanks
 
Back
Top