Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once 'includes/dhb.inc.php';
- $sql = "SELECT * FROM studentdb;";
- // code is working up to this point
- echo "hello";
- $result = mysqli_query($conn, $sql);
- echo "hello2";
- // code stops working at this point
- $resultCheck = mysqli_num_rows($result);
- //
- if ($resultCheck > 0) {
- while($row = mysqli_fetch_assoc($result)) {
- //do something
- }
- }
- ?>
Add Comment
Please, Sign In to add comment