Hi All
I am trying to create a player rating form for a youth soccer club, I can get the players out of the database and into a table but I am having trouble understanding how the form is going to link fields to players and how to go about this. Below is what my table looks like, where the 0 are I want to have drop down boxes with a 1 to 5 rating. Then the form has to insert the values into the players table according to the player ID.
Select players field rating for each category.
Player ID First Name Last Name Aggressiveness Soccer Sense Speed
ADAMS#000207MAK0 Makayla Adams 0 0 0 0 0
HOLTHA000211HOL0 Hollie Holthaus 0 0 0 0 0
I hope this isn't too confusing if someone can even point me to some code which is similar or can give me an example I can probably figure out how to modify it for my needs. Below is how I am creating the table.
// Display all the players.
$result = mysql_query ($query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
// Display each record for field ratings.
echo " <tr>
<td align=\"left\">{$row['players_id']}</td>
<td align=\"left\">{$row['players_fname']}</td>
<td align=\"left\">{$row['players_lname']}</td>
<td align=\"left\">{$row['players_fpaggressiveness']}</td>
<td align=\"left\">{$row['players_fpsense']}</td>
<td align=\"left\">{$row['players_fpspeed']}</td>
<td align=\"left\">{$row['players_fptrapping']}</td>
<td align=\"left\">{$row['players_fpkicking']}</td>
<td align=\"left\">{$row['players_fpdribbling']}</td>
</form></tr>\n";
} // End of while loop.