Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2006, 07:51
DJJJ
 
Fecha de Ingreso: octubre-2005
Mensajes: 407
Antigüedad: 18 años, 5 meses
Puntos: 2
alguien me puede decir que error es este

hola tengo un tagboard en mi web, que le he echo algunas modificaciones, todo bien.

el problema que tengo en que cuando ingresan mensajes, despues de los 120 as o menos, no se bien, porque algunos voy borrando por insultos, y demas que dejan, al llegar mas o menos a los 120

da el siguiente error al querer dejar algun mensaje

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/ju000393/public_html/tagboard3/tag.php on line 86

muestro un pedazo del codigo a partir de la linea 80

Código PHP:
#INSERCIÓN DE DATOS EN LA TABLA:
    
if (($nombre != $null) && ($texto != $null)) {
            
$qry2 "SELECT id, nombre, url, mensaje, ip FROM $tbl ORDER BY id ASC"
            
$ttl 0;
            while (
$row mysql_fetch_row($qry2)) { 
                if (
$cmz == $null) { $cmz $row[0]; }
            
$b_txt $row[3];
            
$ttl++;
            }
        
$ttl++;
        
$lmt++;
        if (
$ttl == $lmt) {
            
$qry "DELETE FROM $tbl where id = '$cmz' LIMIT 1";
            
$res mysql_query($qry) or die("$msg[19]: $qry"); 
        }
        
$ip $_SERVER['REMOTE_ADDR'];
        
$fecha gmdate("$fch"time()); $fecha "$fecha (GMT)";
        
$qry "SELECT deny FROM $tdn WHERE ip = '$ip'";
        
$res mysql_query($qry) or die("$msg[19]: $qry");
        while (
$row mysql_fetch_row($res)) { $dny $row[0]; }
        if ((
$dny == 1) && ($sms == 1)) { echo "<SPAN CLASS=\"avs\">$msg[4]</SPAN><BR>"; }
            if ((
$b_txt != $texto) && ($dny == 0)) {
                
$qry "INSERT INTO $tbl (url,nombre,mensaje,ip,fecha) VALUES('$url','$nombre','$texto','$ip','$fecha')"
                
$res mysql_query($qry) or die("$msg[18]");
            }
    } 
saludos
__________________
DJJJ