<html>
<body>
<?php
$host="localhost"; // Host name
$username="site"; // Mysql username
$password=""; // Mysql password
$db_name="stats"; // Database name
$tbl_name="stats_move"; // Table name
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql="SELECT * FROM $tbl_name";
$result=mysql_query($sql);
while($rows = mysql_fetch_array($result)){
echo $rows['player'];
echo $rows['distance'];
echo $row['distance'];
}
mysql_close();
?>
</body>
</html>
dbconnect($db_host, $db_user, $db_pass, $db_name);
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions