Código:
<?php
include_once('incluir_todo.php');
conectar();
$sql = "SELECT titulo FROM pelis
ORDER BY RAND()
LIMIT 1";
$resultado=mysql_query($sql) or die (mysql_error());
if (! $resultado)
{
echo "La consulta tiene errores.";
exit();
}
while ($row = mysql_fetch_array($resultado))
{
echo "<P>".'<font face="Tahoma" size="1" color="#0000FF">'.$row["categoria"],"</P>";
}
?>
lee bien todo lo que he posteado.. ahy te dice..
a ver si el while esta mal o es el query 
