Jump to content

Why isn't it working


Jedijon

Recommended Posts

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.