Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2008, 12:32
the_josz
 
Fecha de Ingreso: abril-2006
Mensajes: 43
Antigüedad: 18 años, 1 mes
Puntos: 1
Exclamación Algo hice mal, ayuda!!!

Código PHP:
class datoVer{

    var    
$arraya;
    var    
$counta;

    function 
verConsluta($id){

        
$querrys mysql_query("SELECT * FROM ver WHERE id = '$id'");
        
$this->arraya mysql_fetch_array($querrys);
        
$this->counta mysql_num_rows($querrys);
    }
    
    function 
verSumaVisita(){
        
$suma $this->arraya[visitas] + 1;
        
mysql_query("UPDATE ver 
                     SET    visitas = '"
.$suma."' 
                     WHERE  id = '"
.$this->arraya[id]."'");
    
    }

}

$impp = new datoVer();
$impp->verConsluta(1);
$impp->verSumaVisita(); //pero cuando suma SUMA DE A DOS ¿? 
¿? no entiendo... el cuando suma, suma dos veces, pero esto ocurreo con Firefox, en IE suma bien.

Última edición por the_josz; 21/05/2008 a las 12:40