Jedijon Posted November 17, 2018 Share Posted November 17, 2018 <?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>'; ?> 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.