Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/02/2008, 12:05
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: aumentar campo en 1

Prueba así:
Código PHP:
<?  
  
  $query 
"select oferta.visitas from oferta inner join empresa on oferta.usuario=empresa.usuario where oferta.usuario='$usu' and oferta.fecha='$fecha'";
    
$res mysql_query($query$link)  ;

$row mysql_fetch_array($res);

$contador=(int)$row[0]; 
++
$contador;

$query2"update oferta set visitas='$contador ";  

$res2 mysql_query($query2$link);  


?>
Saludos.