Jedijon Posted November 17, 2018 Share Posted November 17, 2018 (edited) <?php $connection = mysql_connect("ip","user","password"); $db = mysql_select_db("database"); $query = mysql_query("select * from users"); echo '<table>'; echo '<tr><td>Username</td> <td>Email</td></tr>'; while ($record = mysql_fetch_array($query)) { echo '<tr> <td>' . $record['username'] . '</td> <td>' . $record['email'] . '</td> </tr>'; } echo '</table>'; ?> Edited November 17, 2018 by Jedijon Quote Link to comment Share on other sites More sharing options...
Barand Posted November 17, 2018 Share Posted November 17, 2018 Probably because it's using out of date mysql_ functions that no longer exist in PHP. Try turning on php error reporting and refer to the manual occasionally. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.