Aniversários - EDITAR

<?php
include "includes/jr/config.php";

$quebras=array("<br />","<br>");

// Recebe o ID e faz a consulta
$codigo = $_GET['id'];
$consulta = mysql_query("SELECT * FROM aniversarios WHERE id = '$codigo'");
while($linha = mysql_fetch_object($consulta)){
?>
<form action="an-atualiza" enctype="multipart/form-data" method="post" name="formatualizar">
<table align="center" border="0" bordercolor="#000000" cellpadding="3" cellspacing="0" width="50%">
<tbody>
<tr>
<td>
ID</td>
<td>
<input id="id" maxlength="200" name="id" type="text" value="<?php echo $linha->id;?>" /></td>
</tr>
<tr>
<td>
Nome completo:</td>
<td>
<input id="nome" maxlength="200" name="nome" type="text" value="<?php echo $linha->nome;?>" /></td>
</tr>
<tr>
<td>
Cidade:</td>
<td>
<input id="cidade" maxlength="200" name="cidade" size="40" type="text" value="<?php echo $linha->cidade;?>" /></td>
</tr>
<tr>
<td>
Estado:</td>
<td>
<input id="estado" maxlength="2" name="estado" type="text" value="<?php echo $linha->estado;?>" /></td>
</tr>
<tr>
<td>
Anivers&aacute;rio:</td>
<td>
<input id="dia" maxlength="2" name="dia" size="2" type="text" value="<?php echo $linha->dia;?>" /> <input id="mes" maxlength="2" name="mes" size="2" type="text" value="<?php echo $linha->mes;?>" /> <input id="ano" maxlength="4" name="ano" size="2" type="text" value="<?php echo $linha->ano;?>" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;
</td>
</tr>
<tr>
<td colspan="2">
Trova(s):<textarea cols="80" id="trovas" name="trovas" rows="5"><?php echo preg_replace("/(\\r)?\\n/i", "\n", $linha->trovas); ?></textarea></td>
</tr>
<tr>
<td colspan="2">
Observa&ccedil;&otilde;es: <input id="obs" maxlength="200" name="obs" size="40" type="text" value="<?php echo $linha->obs;?>" /></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input id="atualizar" name="atualizar" type="submit" value="Atualizar" /></div>
</td>
</tr>
</tbody>
</table>
</form>
<?php } ?>