$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();
}
?>
|
Eco-$mart Administration
Eco-$mart Offices
|
Add Office
Office List
Click [Edit] or [DEL] to Edit or Delete Office.
|
Edit / Delete
|
Representative
|
Rep Area
|
Phone
|
Email
|
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_webadmin', 'istration');
mysql_select_db('ecosmar_website', $dbcnx);
$ok = @mysql_query("SELECT ID,name_1,name_2,locale,state,country,phone,email FROM repcon ORDER BY name_2");
if (!$ok) {
echo "Could not run query: " . mysql_error() ." |
";
}else{
while ($row = mysql_fetch_array($ok)) {
$ID = $row[0];
$name_1 = $row[1];
$name_2 = $row[2];
$locale = $row[3];
$state = $row[4];
$country = $row[5];
$phone = $row[6];
$email = $row[7];
echo("
Edit " .
" DEL | " .
"$name_1 $name_2 | $locale, $state $country | " .
"$phone | $email |
");
}
}
?>
©2006 - Data Base Interface - Custom Built at:
|
|