$dnum = date(mdY)*5;
$ID = $_GET['ID'];
$All = $_GET['All'];
$from = $_GET['fr'];
if($from != $dnum){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must come from Eco-Smart.com to use this page.
");
exit();
}
$golo = rand(4,21);
$gohi = date(md);
$gogo = $gohi * $golo;
$year = date(Y);
if($All == 'All'){
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_webadmin', 'istration');
mysql_select_db('ecosmar_website', $dbcnx);
$result = @mysql_query("SELECT ID,name_1,name_2,email FROM repcon WHERE region='All'");
if (!$result) {
echo "Sorry, not enough information to continue. Please go back and try again.";
exit;
}
$row = mysql_fetch_row($result);
$ID = $row[0];
$name_1 = $row[1];
$name_2 = $row[2];
$name = $name_1." ".$name_2;
$email = $row[3];
}else{
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_webadmin', 'istration');
mysql_select_db('ecosmar_website', $dbcnx);
$result = @mysql_query("SELECT ID,name_1,name_2,email FROM repcon WHERE ID='$ID'");
if (!$result) {
echo 'Could not get representative data: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
$ID = $row[0];
$name_1 = $row[1];
$name_2 = $row[2];
$name = $name_1." ".$name_2;
$email = $row[3];
}
$sig = "writtten";
?>