Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/01/2005, 05:10
cmc
 
Fecha de Ingreso: febrero-2003
Ubicación: Capital
Mensajes: 1.317
Antigüedad: 21 años, 2 meses
Puntos: 1
Gracias Chichoauza por responder funciono solo que le tuve que hacer una modificacion que tiene que ver con esta linea

$rs=mysql_fetch_array($rsdtotal);

se la anule y tome el valor desde $row_rsdtotal que ya tenia, me quedo asi

Código PHP:
if(isset($_GET['id'])){ 
$id $_GET['id']; 
$query_rsdtotal"SELECT * FROM webmaster WHERE id_tuto = $id "//consultamos BD 
$rsdtotal mysql_query($query_rsdtotal) or die(mysql_error());
$row_rsdtotal mysql_fetch_assoc($rsdtotal);
$totalRows_rsdtotal mysql_num_rows($rsdtotal); 
$rs=mysql_fetch_array($rsdtotal); 
$numero=$row_rsdtotal["visitado"]+1
mysql_query("UPDATE webmaster SET visitado='$numero' WHERE id_tuto=$id"); 

La verdad no se en que difiere la modificacion, ya que vuelvo a repetir se poco y nada de php, si alguien me lo podria aclarar seria bueno para mi entendimiento sobre este codigo.
__________________
Claudio Caldareri
diseñador Multimedial
www.disemedios.com.ar