Ejemplo n.º 1
0
 public static function deleteQuery($table, $condition)
 {
     if (!empty($table) && !empty($condition) && is_string($condition)) {
         $result = mysqli_query(DBConnect::getConnection(), 'delete from ' . $table . ' where ' . $condition);
         // close connection of DB
         DBConnect::close_connect();
         // close connection of DB
         return $result;
     }
     return false;
 }