el error es el siguiente:
Warning: mysql_query(): Access denied for user: '[email protected]' (Using password: NO) in /home/webcindario/tratoweb/foro/EXTRAS.php on line 25
Warning: mysql_query(): A link to the server could not be established in /home/webcindario/tratoweb/foro/EXTRAS.php on line 25
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/webcindario/tratoweb/foro/EXTRAS.php on line 27
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/webcindario/tratoweb/foro/EXTRAS.php on line 36
.Ultimos Mensajes Enviados.
Warning: mysql_query(): Access denied for user: '[email protected]' (Using password: NO) in /home/webcindario/tratoweb/foro/EXTRAS.php on line 62
Warning: mysql_query(): A link to the server could not be established in /home/webcindario/tratoweb/foro/EXTRAS.php on line 62
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/webcindario/tratoweb/foro/EXTRAS.php on line 64
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/webcindario/tratoweb/foro/EXTRAS.php on line 73
y el codigo de el archivo es este:
Código PHP:
<?php
include("configuracion.php");
/*
Estas funciones pueden serle de utilidad para mostrar en su pagina
*/
//Con esta funcion mostrara las ultimas discuciones activas del foro, recibe el parametro $cuantos, digamos que quiere mostrar los ultimos 10 tendria que llamarla : mostrarUltimosMensajes(10);
function mostrarUltimosMensajes($cuantos)
{
?>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER=0 WIDTH=130>
<TR>
<TD STYLE="border:1px solid black">
<CENTER>
<SPAN STYLE="font-size:12px;font-weight:bold;font-family:Tahoma;color:blue">
.Ultimas Discuciones Activas.
</SPAN>
</CENTER>
</TD>
</TR>
<TR>
<TD STYLE="border:1px solid black;text-align:justify">
<?
$cuantos++;
$resultMUM = mysql_query("SELECT id,titulo FROM jlmldv_mensajes ORDER BY ultimaActualizacion DESC LIMIT 0,$cuantos");
while($rowMUM = mysql_fetch_array($resultMUM))
{
?>
<A HREF="mensaje.php?id=<? echo $rowMUM["id"]; ?>" TARGET="_blank">
<IMG SRC="Imagenes/carpeta.gif" WIDTH=10 BORDER=0><? echo convertirTitulo($rowMUM["titulo"]); ?>
</A>
<BR>
<?
}
mysql_free_result($resultMUM);
?>
</TD>
</TR>
</TABLE>
<?
}
//Con esta funcion mostrara los ultimos mensajes enviados al foro,, recibe el parametro $cuantos, digamos que quiere mostrar los ultimos 10 tendria que llamarla : mostrarUltimosMensajesEnviados(10);
function mostrarUltimosMensajesEnviados($cuantos)
{
?>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER=0 WIDTH=130>
<TR>
<TD STYLE="border:1px solid black">
<CENTER>
<SPAN STYLE="font-size:12px;font-weight:bold;font-family:Tahoma;color:blue">
.Ultimos Mensajes Enviados.
</SPAN>
</CENTER>
</TD>
</TR>
<TR>
<TD STYLE="border:1px solid black;text-align:justify">
<?
$cuantos++;
$resultMUM = mysql_query("SELECT id,titulo FROM jlmldv_mensajes ORDER BY id DESC LIMIT 0,$cuantos");
while($rowMUM = mysql_fetch_array($resultMUM))
{
?>
<A HREF="mensaje.php?id=<? echo $rowMUM["id"]; ?>" TARGET="_blank">
<IMG SRC="Imagenes/carpeta.gif" WIDTH=10 BORDER=0><? echo convertirTitulo($rowMUM["titulo"]); ?>
</A>
<BR>
<?
}
mysql_free_result($resultMUM);
?>
</TD>
</TR>
</TABLE>
<?
}
?>