-
- $sql = "INSERT INTO ".TB_PREF."shippers (shipper_name, contact, phone, address)
- VALUES (" . db_escape($_POST['shipper_name']) . ", " .
- db_escape($_POST['contact']). ", " .
- db_escape($_POST['phone']). ", " .
- db_escape($_POST['address']) . ")";
-
- db_query($sql,"The Shipping Company could not be added");
+ add_shipper($_POST['shipper_name'], $_POST['contact'], $_POST['phone'], $_POST['phone2'], $_POST['address']);