Okay, I have done quite a bit of searching and haven't quite found what I am looking for. I am just starting out with php/mysql.
Basically, I am trying to put together a poker page for my local game. What I am trying to accomplish is being able to upload tournament results into a tournaments database and have player cards and tournament pages automatically update.
This is what I have so far. I have a database called 'tournaments' with the tables Date, Position, Name, and Won. Now, I have created a tournaments page where all I want to display is the date of each tournament. I have figured out how to select the distinct dates. What I need to do now is make those dates into a link. The link would display the tournament results for the date they clicked.
Hope I made sense and that my intentions are clear. This is what I have so far:
$query = mysql_query("SELECT DISTINCT date FROM tournaments ORDER BY date DESC");
while($row = mysql_fetch_array($query))
{
$date = $row['date'];
echo "<center> $date </center><br/>";
}