Exemplo n.º 1
0
 public function getDelete()
 {
     $sql = "DELETE from karyawan where id='{$_GET['id']}'";
     $c = new koneksi();
     $c->openconnection();
     $query = mysql_query($sql) or die(mysql_error());
     return $query;
 }
Exemplo n.º 2
0
 public function getDelete()
 {
     $sql = "DELETE from transaksi where id='" . $this->getid() . "'";
     $c = new koneksi();
     $c->openconnection();
     $query = mysql_query($sql) or die(mysql_error());
     return $query;
 }