This query will not work, I have the connection established dont worry about that.
PHP Code://See if there is a source where the customer came from.
if (!empty ($_SERVER['QUERY_STRING']))
{
$query = "SELECT * FROM sources WHERE source = addslashes({$_SERVER['QUERY_STRING']})";
if ($query_result = @mysql_query ($query))
{
$t = mysql_numrows ($query_result);
if ($t != 0)
{
while ($row = @mysql_fetch_array ($query_result)) {
$_SESSION['referrer'] = $_SERVER['QUERY_STRING'];
echo "Yes!";
$i++;
}
}
}
else
{
echo "Could not run the source query. Please email webmaster <a href=\"mailto:{$config['email']}?subject=Source Query Error On Page {$_SERVER['REQUEST_URI']}\">here</a>.";
exit;
}
}







Bookmarks