public function addLube() { require 'models/Stocks_model.php'; $prdName = $_POST['prd-name']; $prdPrice = $_POST['prd-price']; $prdQnty = $_POST['prd-qnty']; $supplier = $_POST['supplier']; $model = new Stocks_model(); if ($model->addLubricant($prdName, $prdPrice, $prdQnty, $supplier)) { echo "Success"; } else { echo "Nah"; } }