Jump to content

[SOLVED] Creating a database to track miles ridden


sanderphp

Recommended Posts

I would like to create a MySQL db to track the number of miles I ride on my bike per month for myself as well as my friends. My thoughts are a simple form with a few fields that get filled in. I have created very simple MySQL db's before but nothing where you have repetitive entries from the same users (hope that makes sense).    What is the best way to go about this? One table per rider or would I just use a field to distinguish which rider I am looking at when I want to display information?

I would use 2 tables, and then use join statements to connect the 2.

 

table 1

 

ID

Rider

 

table 2

 

ID

Miles

Rider_id

 

Something along those lines is what I would do. if that is all you want to save.  then you use sql SUM to count at the end of the month.

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.