 <p>You're getting errors on your php script. The first step is to turn on your error reporting, so put the code below right under your opening <code>&lt;?php</code> tags:</p> <pre><code>ini_set('display_errors', 1); error_reporting(-1); </code></pre> <p>That will show you the errors. Now reading the comments, you're query seems to be failing.</p> <p>You should be checking the query to ensure it is actually successful before you try and fetch results as such.</p> <pre><code>$query = " Select * FROM users; "; $result = mysqli_query($connect, $query); // this checks if query failed and prints error. if(!$result){ die("SQL Error: ". mysqli_error($connect)); } // will only get here if your query runs successfully. $number_of_rows = mysqli_num_rows($result); ///... rest of your code... </code></pre> <p>Now, let us know what errors you get and if you managed to fix them. I'll update this answer as you reply.</p>