php - Select data from SQL database and display in table does not work -
i don't understand why isn't working, have been stuck on ages , tried lots of different alternatives, doesn't print data database. at moment trying id print, want print of data in database (not including hash). here code: <!doctype html> <html> <head> <title>staroids leaderboard</title> </head> <body> <table border=1px> <thead> <tr> <td>name</td> <td>score</td> </tr> </thead> <tbody> <?php $connect = mysql_connect("localhost","root", "password"); if (!$connect) { die(mysql_error()); } mysql_select_db("staroids"); $results = mysql_query("select id scores"); while($row = mysql_fetch_array($results)) { $nam...