</table> <table> <tr> <td></td> <td></td> <td><b><h2> Rp. <?php echo $total_bil; ?> </h2></b></td> </tr> </table> <?php if (@$_GET['page'] == 'hapus') { $id = @$_GET['no']; $crud->delete("keranjang", "noo= '{$id}'"); } ?> <a href="#"><center><img src="img-icon/selesai.png" width="80px"></center></a> </div> </div> </header> <!--data makanan php --> <!-- Thumbnail --> <section id="thumbnails"> <?php $no = 1;
public static function delete($id) { $id = $_POST[$id]; $crud = new CRUD(); $crud->delete('prova2', ' WHERE id=? ', array($id)); }
<input type="text" name="harga" class="form-control" placeholder="" required > <input type="text" name="id" value="" name="id"> <br> <button type="submit" class="btn btn-success" name="edit">Masukan</button> </div> </form> </div> </div> </table> </div> </div> <?php if (@$_GET['page'] == 'hapus') { $id = @$_GET['no']; echo "{$id}"; $crud->delete("makanan", "no = '{$id}'"); } ?> <div class="tab-pane fade" id="datapegawai"> <table class="table table-striped"> <thead> <tr> <th>No</th> <th>Nama </th> <th>Username</th> <th>alamat</th> <th>Telepon</th>
<?php require_once "/../class/ConDB.class.php"; $idpergunta = $_GET['id']; $crud = new CRUD(); $crud->delete('faq', ' WHERE id=? ', array($idpergunta)); //print $idpergunta;
/** * Deleta o objeto especificado <br /> * Ex.: <br /> * $produto = new Produto(); <br /> * $produto->setId(1); <br /> * $produto->delete(); <br /> * * @param mixed $object * @param string $whereCondition * @return boolean */ public static function delete($classOrObject, $whereCondition = "") { $crud = new CRUD($classOrObject); $obj = self::getInstance($classOrObject); return $crud->delete($obj, $whereCondition); }