Guest User

Untitled

a guest
Jun 6th, 2023
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.     include_once 'includes/dhb.inc.php';
  3.     $sql = "SELECT * FROM studentdb;";
  4.     // code is working up to this point
  5.     echo "hello";
  6.     $result = mysqli_query($conn, $sql);
  7.     echo "hello2";
  8.     // code stops working at this point
  9.     $resultCheck = mysqli_num_rows($result);
  10.     //
  11.     if ($resultCheck > 0) {
  12.         while($row = mysqli_fetch_assoc($result)) {
  13.             //do something
  14.         }
  15.     }
  16. ?>
  17.        
Add Comment
Please, Sign In to add comment