Hi
Im having a go at this, but not good on the php thing, thats why im hoping you can help.
I am trying to set up a jump script from one I have used for 1 or 2 urls, now I have a database of around 500000 lines, each one has an id field and a link field to jump to. I can send the info for the function but cant get it to add the field from the database. This is the code I have got so far.
<?php
$con = mysql_connect("localhost","blar","blar");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("blar", $con);
$m = $_GET['m'];
ob_start();
$query = "SELECT `ID`, 'Link' FROM TABLE where `ID` ='$m' LIMIT 1";
$result = mysql_query($query) or die(mysql_error());
if ($m == "['ID']"){$link = "['Link']";}
echo "sending to page now";
header("Location: $link");
ob_flush();
die();
?>
the page is sending the m=id and the page "sending to page now comes" up but no redirect occurs?
Hope someone can help
Thanks in advance