$dnum = date(Ymd)*4;
$from = $_GET['fr'];
if($from == ""){
$from = $_POST['fr'];
}
if($from != $dnum){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
");
exit();
}
$usrn = $_GET['usrn'];
if($usrn == ""){
$usrn = $_POST['usrn'];
}
if($usrn == ""){
echo("<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
");
exit();
}
$ID = $_GET['ID'];
$repusrn = $_GET['repusrn'];
$today = date("F j, Y");
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
if($repusrn != 'none'){
$ok = @mysql_query("SELECT first_name,last_name FROM psw WHERE usrn='$repusrn'");
if (!$ok) {
echo 'Could not retrieve Representative Name: ' . mysql_error();
}
$rowa = mysql_fetch_array($ok);
$repname1 = $rowa[0];
$repname2 = $rowa[1];
}else{
$repname1 = '-';
$repname2 = 'None';
}
$ok2 = @mysql_query("SELECT first_name,last_name,usrn FROM psw ORDER BY last_name");
if (!$ok2) {
echo 'Could not retrieve Representative Name: ' . mysql_error();
}
while($rowb = mysql_fetch_array($ok2)){
$repname1_array[] = $rowb[0];
$repname2_array[] = $rowb[1];
$repusrn_array[] = $rowb[2];
}
?>
|
Eco-$mart, Inc. On-line Administration
|
©2007 - Data Base Interface - Custom Built at:
|