Пример #1
0
<?php

//var_dump($_POST['id_pelanggan']);
include "../Data_cucian.php";
$laundry = new laundry();
//$laundry -> namaPelanggan = $_POST['nama'];
$laundry->jenisCucian = $_POST['jenis'];
$laundry->beratCucian = $_POST['berat'];
$laundry->editdatalaundy($id_cucian = $_POST['id_cucian']);
//var_dump($laundry);
header('Location:../laundry.php');
Пример #2
0
<?php

/**
 * Created by PhpStorm.
 * User: asmunanda
 * Date: 6/2/2015
 * Time: 7:14 PM
 */
//include "../include/db_connect.php";
include "../Data_cucian.php";
$laundry = new laundry();
$laundry->jenisCucian = $_POST['jenis'];
$laundry->beratCucian = $_POST['berat'];
$laundry->idUser = $_POST['id_pelanggan'];
$laundry->tambahlaundy();
//var_dump($laundry);
header('Location:../pelanggan.php');