Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($stmt->execute()) {
- $result = $stmt->get_result();
- $numRows = $result->num_rows;
- if($numRows > 0) {
- while($row = $result->fetch_assoc()) {
- array_push($dtbOutput, ["lines" => $numRows]);
- $dtbOutput[] = $row;
- }
- } else {
- $dtbOutput = [["lines" => $numRows]];
- }
- } else {
- throw new Exception("Chyba v 'stmt_get' u".$stmt->error);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement