public function update_supplier() { require 'models/Assets_model.php'; $fname = $_POST['fname']; $lname = $_POST['lname']; $company = $_POST['company']; $nic = $_POST['nic']; $email = $_POST['email']; $pnumber = $_POST['pnumber']; $address = $_POST['address']; $type = $_POST['type']; $id = $_POST['iddd']; $model = new Assets_model(); $model->update_supplier1($fname, $lname, $company, $address, $email, $pnumber, $nic, $type, $id); }