Ho ancora bisogno del vostro aiuto con questo codice php:

Codice PHP:
<?php

include("../script/config.php");

$cookie_read = explode("|", base64_decode($admin));
$adminid = $cookie_read[0];


$db = @mysql_connect($db_host, $db_username, $db_password, $prefix);
if(
$db)
{
if(!(@
mysql_select_db($databse_name, $db)))
{
die(
"Errore nella selezione del database. Vi preghiamo di contattare il WebMaster");
}
}
else
{
die(
"Errore nella connessione. Vi preghiamo di contattare il WebMaster");
}

$cookie_read = explode("|", base64_decode($admin));
$adminid = $cookie_read[0];

$sql = mysql_query('SELECT fullname, email, adminid FROM ' . $prefix . '_admin WHERE adminid= ' . (int)$id);
if(!(
$sql))
{
die(
'Errore: ' . mysql_errno() . ': ' . mysql_error());
}
while(
$row = mysql_fetch_array($sql, MYSQL_ASSOC))
{
echo
'<form action="" method="post">';
echo
'<table align="center" border="0" width="80%" id="table1" cellpadding="2">';
echo
'<tr>';
echo
'<td height="27"><strong>Nome Completo:</strong></td>';
echo
'<td height="27"><input type="text" name="fullname" value="' . $row['fullname'] . '" size="58"></td>';
echo
'</tr>';
echo
'<tr>';
echo
'<td height="27"><strong>NickName</strong></td>';
echo
'<td height="27"><input type="text" name="admin_name" value="' . $row['admin_name'] . '" size="58"></td>';
echo
'</tr>';
echo
'<tr>';
echo
'<td height="27"><strong>E-Mail</strong></td>';
echo
'<td height="27"><input type="text" name="email" value="' . $row['email'] . '" size="58"></td>';
echo
'</tr>';
echo
'<tr>';
echo
'<td>&nbsp;</td>';
echo
'<td>';
echo
'<input type="hidden" value="' . $row['adminid'] . '" name="adminid">';
echo
'<input type="submit" value="' . _SAVECHANGES . '" name="save_article">';
echo
'<input type="submit" value="' . _DELETE . '" name="delete_article">';
echo
'</td>';
echo
'</tr>';
echo
'</table>';
echo
'</form>';
}

if(!empty(
$_POST['save_article']))
{
$fullname = trim(htmlspecialchars($_POST['fullname']));
$admin_name = trim(htmlspecialchars($_POST['admin_name']));
$email = trim(htmlspecialchars($_POST['email']));
$id = (int)$_POST['id'];

if(!(
mysql_query("UPDATE wtech_admin SET fullname = '$fullname', admin_name = '$admin_name', email = '$email' WHERE adminid = '" . $id . "'")))
{
die(
'Errore: ' . mysql_errno() . ': ' . mysql_error());
}
else
{
die(
'Profilo modificato con successo, ora verrete diconessi');
}
}

?>
Questo codice doovrebbe modificare i dati del profilo, ma non si vede niente.
Penso che l'errore sia nel fatto che non trova la cookie.