<<<<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  
Company Name: " . "". "" . ""); $i = 10; while($i > 0){//add some empty rows echo("" . "" . "" . ""); $i=$i-1; }//while counting down rows }elseif($countprods > 0){//there are many prods $extrarows = 10 - $countprods; echo("" . "". "" . ""); $i=0; while($i < $countprods){ echo("" . "" . "" . ""); $i=$i+1; }//while echoing more products while($extrarows > 0){//add some empty rows echo("" . "" . "" . ""); $extrarows=$extrarows-1; }//while counting down rows }//there are many prods if($item=="" or $prod_name=="" or $sku=="" or $mfg_prod_name==""){ echo(""); $tellem = "yes"; }//not enough product information if($order_email==""){ echo(""); $tellem = "yes"; } if($tellem == "yes"){ echo(""); } ?>
Products
Eco-$mart Info MFG Info
Item Catalog Name sku Product Name
" . "Incomplete Product Information.
" . "No Order Email Entered.
Automatic Ordering will not work without the required information.
 
Contact Name:
Email:
Order Email:
Register Contacts: "); }else{ echo(""); } ?>
Address:
City:
State:
Mail Code:
Country:
Phone:
FAX:
Website:
 
Eco-$mart Products
©2006 - Data Base Interface - Custom Built at:  kwgrubbs.com