Okay here's the piece of the code that I need to see if it's correct
$result = mysql_query ("SELECT url from track2 where id='$id'");
while ($row =@ mysql_fetch_array($result))
{
Header("Location: $row[url]");
}
Is this correct?
I'm trying to redirect visitors from
domain.com/track.php?id=$id
to a url depending on what $id is. Still with me?π
The problem is it won't send it to the specific page, it sends it to the main page.
ie. If I wanted to redirect visitors to
domain.com/test/test.html
it will instead send them to
domain.com
My table shows the correct url. My script just won't send them to it.
Thanks
Derek