Currently it make every drivers into list and I can only update one driver points at time when I hit update button.
But I would like to know if its possible that there would be on update button which update all drivers points. Sorry for messy in code . In update.php there is few unnecessary lines at bottom in races.php site. If someone could help me out would be great . And if you make alot changes (if needed) I would like to see them all so I would learn something new . Not sure if here is enough information just ask and Ill answer if you need more info.


This is calles "races.php"

PHP Code:
<?php
//This page displays the list of the forum's categories
include('../config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="../style.css" rel="stylesheet" title="Style" />
        <title>Admin Panel</title>
    </head>
    <body>



<div class="wrap">

<h4>F1 Championship 2012</h4>
<p>
    1. - 25 pts | 
    2. - 18 pts | 
    3. - 15 pts | 
    4. - 12 pts | 
    5. - 10 pts | 
    6. - 8 pts | 
    7. - 6 pts | 
    8. - 4 pts | 
    9. - 2 pts | 
    10. - 1 pts
</p>
<table class="text">
    <tr>
        <th>#</th>
        <th>Driver</th>
        <th>Team</th>
        <th>AUS</th>
        <th>MAL</th>
        <th>CHI</th>
        <th>BAH</th>
        <th>SPA</th>
        <th>MON</th>
        <th>CAN</th>
        <th>EUR</th>
        <th>GRB</th>
        <th>GER</th>
        <th>HUN</th>
        <th>BEL</th>
        <th>ITA</th>
        <th>SIN</th>
        <th>JAP</th>
        <th>KOR</th>
        <th>IND</th>
        <th>ABD</th>
        <th>UNS</th>
        <th>BRA</th>
        
        <th>Points</th>
    </tr>
    
    

<?php
$req 
mysql_query('select `id`, `aus`, `mal`, `chi`,

bah, spa, mon, can, eur, grb, ger, hun, bel, ita, sin, jap, kor, ind, abd, uns, bra,


`driver`, `team`, `aus` + `mal` + `chi` 
 + `bah`
  + `spa`
   + `mon`
    + `can`
     + `eur`
      + `grb`
       + `ger`
        + `hun`
         + `bel`
          + `ita`
           + `sin`
            + `jap`
             + `kor`
              + `ind`
               + `abd`
                + `uns`
                 + `bra`
as Total from users ORDER BY  Total DESC'
);


while(
$dnn mysql_fetch_array($req))
{
?>
    <tr>
    
<form method="post" name="update" action="../admin/update.php" />    
    


<td>    
<input type="text" class="idtab" name="id" value="<?php echo $dnn['id']; ?>"    
</td>
        
<td class="drivertext"><?php echo htmlentities($dnn['driver'], ENT_QUOTES'UTF-8'); ?></td>


<td class="teamtext" ><?php echo htmlentities($dnn['team'], ENT_QUOTES'UTF-8'); ?></td>
        
        
        
<td>        
<input type="text" class="pointtab" name="aus"value="<?php echo htmlentities($dnn['aus'], ENT_QUOTES'UTF-8'); ?>"
</td>        
<td>        
<input type="text" class="pointtab" name="mal"value="<?php echo htmlentities($dnn['mal'], ENT_QUOTES'UTF-8'); ?>"
</td>
<td>        
<input type="text" class="pointtab" name="chi"value="<?php echo htmlentities($dnn['chi'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="bah"value="<?php echo htmlentities($dnn['bah'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="spa"value="<?php echo htmlentities($dnn['spa'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="mon"value="<?php echo htmlentities($dnn['mon'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="can"value="<?php echo htmlentities($dnn['can'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="eur"value="<?php echo htmlentities($dnn['eur'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="grb"value="<?php echo htmlentities($dnn['grb'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="ger"value="<?php echo htmlentities($dnn['ger'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="hun"value="<?php echo htmlentities($dnn['hun'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="bel"value="<?php echo htmlentities($dnn['bel'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="ita"value="<?php echo htmlentities($dnn['ita'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="sin"value="<?php echo htmlentities($dnn['sin'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="jap"value="<?php echo htmlentities($dnn['jap'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="kor"value="<?php echo htmlentities($dnn['kor'], ENT_QUOTES'UTF-8'); ?>"
</td>    
<td>        
<input type="text" class="pointtab" name="ind"value="<?php echo htmlentities($dnn['ind'], ENT_QUOTES'UTF-8'); ?>"
</td>
<td>        
<input type="text" class="pointtab" name="abd"value="<?php echo htmlentities($dnn['abd'], ENT_QUOTES'UTF-8'); ?>"
</td>
<td>        
<input type="text" class="pointtab" name="uns"value="<?php echo htmlentities($dnn['uns'], ENT_QUOTES'UTF-8'); ?>"
</td>
<td>        
<input type="text" class="pointtab" name="bra"value="<?php echo htmlentities($dnn['bra'], ENT_QUOTES'UTF-8'); ?>"
</td>    
        
<td>        
<input type="text" class="pointtab" name="points"value="



<?php echo htmlentities($dnn['Total'], ENT_QUOTES'UTF-8'); ?>"


</td>
    
        
<td>        
<input type="submit" name="Submit" value="update" /></td>
</form>        
        
    </tr>
    


    
    
    
    
<?php
}
?>    




</table>

<br><br>





<div class="teamspoints">
<table>
<?php
$req 
mysql_query('

select 
`id`,
`driver`, 
`team`, 
sum(`aus` 
+ `mal` 
+ `chi` 
 + `bah`
  + `spa`
   + `mon`
    + `can`
     + `eur`
      + `grb`
       + `ger`
        + `hun`
         + `bel`
          + `ita`
           + `sin`
            + `jap`
             + `kor`
              + `ind`
               + `abd`
                + `uns`
                 + `bra`)
as Total from users group by `team` order by Total DESC

'
);
while(
$dnn mysql_fetch_array($req))
{
?>

<tr>    

    
<td class="teamtext"><?php echo htmlentities($dnn['team'], ENT_QUOTES'UTF-8'); ?></td>
        
<td><input type="text" class="teampointtab" name="Total" value="<?php echo htmlentities($dnn['Total'], ENT_QUOTES'UTF-8'); ?>"/>


</td>
    </tr>
    
<?php
}
?>    



</table>
</div>




</div>
    </body>
</html>

And this is calld "update.php"


PHP Code:
<meta http-equiv="refresh" content="2;url=../admin/races.php"> 


<?php
//This page let delete a category
include('../config.php');

?>





<?php
$aus 
$_POST['aus'];
$mal $_POST['mal'];
$chi $_POST['chi'];
$bah $_POST['bah'];
$spa $_POST['spa'];
$mon $_POST['mon'];
$can $_POST['can'];
$eur $_POST['eur'];
$grb $_POST['grb'];
$ger $_POST['ger'];
$hun $_POST['hun'];
$bel $_POST['bel'];
$ita $_POST['ita'];
$sin $_POST['sin'];
$jap $_POST['jap'];
$kor $_POST['kor'];
$ind $_POST['ind'];
$abd $_POST['abd'];
$uns $_POST['uns'];
$bra $_POST['bra'];




$points $_POST['points'];
$id $_POST['id'];


$query "UPDATE users SET points = '$points'
, aus = '$aus', mal = '$mal' 
, chi = '$chi', bah = '$bah' 
, spa = '$spa', mon = '$mon' 
, can = '$can', eur = '$eur' 
, grb = '$grb', ger = '$ger' 
, hun = '$hun', bel = '$bel' 
, ita = '$ita', sin = '$sin' 
, jap = '$jap', kor = '$kor' 
, ind = '$ind', abd = '$abd' 
, uns = '$uns', bra = '$bra' 


WHERE id = '$id'"
;
if(
mysql_query($query)){
echo 
"updated <a href=\"../admin/users.php\">back</a>\n" ;}
else{
echo 
"fail";}
?>





Here is all files if you want check it out:
http://uppit.com/0khdwty963nd/F1.rar