$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'];
$dbcnx = mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_products', $dbcnx);
$listem = mysql_query("SELECT ID,item,sku,prod_name,mfg_prod_name,add_prods,co_name,co_rep,email,order_email,reg,address,city,state,ZipCode,country,phone,FAX,website FROM mfg WHERE ID='$ID'");
if (!$listem){
die ("Error Selecting Products from Data Base!
".
'Error:' . mysql_error() . '
');
}
$row = mysql_fetch_array($listem);
$item = $row['item'];
$sku = $row['sku'];
$prod_name = stripslashes($row['prod_name']);
$mfg_prod_name = stripslashes($row['mfg_prod_name']);
$add_prods = $row['add_prods'];
if($add_prods != ""){
$cutone = explode(":", $add_prods);
foreach($cutone as $value){
$cuttwo = explode("%", $value);
$items[] = $cuttwo[0];
$prod_names[] = $cuttwo[1];
$skus[] = $cuttwo[2];
$mfg_prod_names[] = $cuttwo[3];
}//for each line in list
}
$co_name = stripslashes($row['co_name']);
$co_rep = stripslashes($row['co_rep']);
$email = $row['email'];
$order_email = $row['order_email'];
$reg = $row['reg'];
$address = stripslashes($row['address']);
$city = $row['city'];
$state = $row['state'];
$ZipCode = $row['ZipCode'];
$country = $row['country'];
$phone = $row['phone'];
$FAX = $row['FAX'];
$website = $row['website'];
$countprods = count($prod_names);
?>
Manufacturers List Administration
Edit Manufacturer
Edit Manufacturer Information |
|