questo è il codice..
codice:
<?php
while ($res= mysql_fetch_assoc($results))
{ echo('<tr><td>');
echo $res[logo];
echo('</td><td>');
echo $res[squadra];
echo('</td>
<td><input type=text name=punti size=5 maxlength=3 value=\'$res[punti]\'></td>
<td><input type=text name=giocate size=5 maxlength=3></td>
<td><input type=text name=vinte size=5 maxlength=3></td>
<td><input type=text name=nulle size=5 maxlength=3></td>
<td><input type=text name=perse size=5 maxlength=3></td>
<td><input type=text name=gol_fatti size=5 maxlength=3></td>
<td><input type=text name=gol_subiti size=5 maxlength=3></td> </tr>'); }
echo ('</table></form>'); ?>
quello che vorrei è che nel campo input, in "value" ci fosse scritto il punteggio vecchio in pratica...deve comparire il dato già salvato nel database che devo modificare! ma non so come fare..ho provato un pò ma per il momento mi esce scritto "res[punti]" e non mi stampa il dato..grazie!