Ver Mensaje Individual
  #13 (permalink)  
Antiguo 18/11/2008, 14:22
lauchalp95
 
Fecha de Ingreso: julio-2006
Mensajes: 254
Antigüedad: 17 años, 10 meses
Puntos: 0
me fijare >.<

Como uso el mysql_Affected_rows

porque yo hize asi:
<?
if($_POST[ag] > $row_dat[tp]) { echo " No tienes tantos TP "; } else {
$yu = $row_dat[tp] - $_POST[ag];
$ya = $row_banco[tp] + $_POST[ag];


$montito = "UPDATE tecnopoints SET tp = '$yu' WHERE usuario = '$_SESSION[MM_Username]'";
$banqi = "UPDATE banco SET tp = '$ya' WHERE usuario = '$_SESSION[MM_Username]'";

$ejecutomontito = mysql_query($montito) or die(mysql_error());
$ejecutobanqi = mysql_query($banqi) or die(mysql_error());

echo "'Número de filas afectadas:'. mysql_affected_rows ())";

};
?>
Y no me funciona >.<
Soy un tonto ya se... pero necesito su ayuda.

Última edición por GatorV; 18/11/2008 a las 14:44