También ocurre en index.php

:
index.php
Código PHP:
<?php require_once('../../Connections/ffextremo_cms.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_ffextremo_cms, $ffextremo_cms);
$query_site = "SELECT sitename, sitedesc, siteauthor, sitekeywords, siteurl, siteys, siteyf FROM site";
$site = mysql_query($query_site, $ffextremo_cms) or die(mysql_error());
$row_site = mysql_fetch_assoc($site);
$totalRows_site = mysql_num_rows($site);
$colname_lista_mail = "-1";
if (isset($_COOKIE['username'])) {
$colname_lista_mail = (get_magic_quotes_gpc()) ? $_COOKIE['username'] : addslashes($_COOKIE['username']);
}
mysql_select_db($database_ffextremo_cms, $ffextremo_cms);
$query_lista_mail = sprintf("SELECT * FROM email WHERE `for` = %s", GetSQLValueString($colname_lista_mail, "text"));
$lista_mail = mysql_query($query_lista_mail, $ffextremo_cms) or die(mysql_error());
$row_lista_mail = mysql_fetch_assoc($lista_mail);
$totalRows_lista_mail = mysql_num_rows($lista_mail);
?>
<!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=iso-8859-1" />
<title><?php echo $row_site['sitename']; ?> » Zona de usuarios registrados » Bandeja de entrada</title>
<meta name="description" content="<?php echo $row_site['sitedesc']; ?>"/>
<meta name="keywords" content="<?php echo $row_site['sitekeywords']; ?>" />
<meta name="author" content="<?php echo $row_site['siteauthor']; ?>" />
</head>
<body>
<p><a href="<?php echo $row_site['siteurl']; ?>"><?php echo $row_site['sitename']; ?></a> » Zona de usuarios registrados » Bandeja de entrada </p>
<h2>Bandeja de entrada</h2>
<table width="60%" border="0">
<tr>
<td>Asunto:</td>
<td>Remitente:</td>
<td>Leer:</td>
<td>Responder:</td>
<td>Borrar:</td>
</tr>
<tr>
<?php do { ?>
<td><?php echo $row_lista_mail['title']; ?></td>
<td><?php echo $row_lista_mail['for']; ?></td>
<td><div align="center">
<form id="leer" name="leer" method="post" action="read.php">
<label>
<input type="submit" name="Submit" value="Leer" />
</label>
<input name="id" type="hidden" id="id" value="<?php echo $row_lista_mail['id']; ?>" />
</form>
</div></td>
<td><div align="center"><a href="create.php?to=<?php echo $row_lista_mail['for']; ?>">»</a></div></td>
<td><div align="center">
<form id="borrar" name="borrar" method="post" action="delete">
<label>
<input type="submit" name="Submit2" value="Eliminar" />
<input name="id" type="hidden" id="id" value="<?php echo $row_lista_mail['id']; ?>" />
</label>
</form>
</div></td>
<?php } while ($row_lista_mail = mysql_fetch_assoc($lista_mail)); ?></tr>
</table>
<p> </p>
<p>Copyright ©
<?php echo $row_site['siteys']; ?> -
<?php echo $row_site['siteyf']; ?> <?php echo $row_site['sitename']; ?></p>
</body>
</html>
<?php
mysql_free_result($site);
mysql_free_result($lista_mail);
mysql_free_result($site);
?>
¿A qué puede deberse el error?
¡¡ Muchas gracias de antemano !!