$ID = $_POST['ID'];
$proname = $_POST['proname'];
$name = $_POST['name'];
$address = $_POST['address'];
$city = $_POST['city'];
$area = $_POST['area'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$country = $_POST['country'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$website = $_POST['website'];
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_products', $dbcnx);
$ok = @mysql_query("UPDATE dealers SET name='$name',address='$address',city='$city',area='$area',state='$state',zip='$zip',country='$country',phone='$phone',email='$email',website='$website' WHERE ID = '$ID'");
if ($ok) {
echo("
Data Base updated.
");
} else {
echo("
Error Updating the Data Base!
" .
"Error: " . mysql_error() . "
");
}
?>