[Solved] Can I display all users using php and sql?


mysqli query need connection parameter at first. More about mysqli query. Try this

$query = mysqli_query($connection_var, "SELECT username FROM member");

echo '<table>';
while($rowtwo = mysqli_fetch_array($query)){
   echo '<tr><td>'.$rowtwo["username"].'</td></tr>';
}
echo '</table>';

0

solved Can I display all users using php and sql?