autocommit(false); return $mysqli_i; } function execQuery($query) { $conn = db_open(); $rs = mysqli_query($conn, $query);// or die (mysqli_error()); db_close($conn); return $rs; } function rs_to_array($result, $numass = MYSQLI_BOTH) { $got = array(); if (mysqli_num_rows($result) == 0) return $got; mysqli_data_seek($result, 0); while ($row = mysqli_fetch_array($result, $numass)) { array_push($got, $row); } return $got; } ?>