Exemple #1
0
 public function insertPumpReadings()
 {
     require 'models/Stocks_model.php';
     $model = new Stocks_model();
     $pumpNos = array();
     for ($a = 1; $a <= 10; $a++) {
         $pumpNos[$a] = $_POST[$a];
     }
     if ($model->insertPumpReadings($pumpNos)) {
         echo "Success";
     } else {
         echo "Failed";
     }
 }