buenas amigos... que tal?
estoy utilizando la funcion mysql_affected_rows() y por alguna razon no esta funcionando.. dejo el script a ver si el problema esta en otro lado.. Gracias anticipadas!!!
Código PHP:
Ver originalif($_GET['rating'] && $_GET['Iduser']){
$Iduser = $_GET['Iduser'];
$local = $_GET['local'];
$rating = $_GET['rating'];
$update = "UPDATE g_voto_local set valor_voto = '".$rating."' WHERE id_user = '".$Iduser."' AND id_local = '".$local."'";
//echo "UPDATE g_voto_local set valor_voto = '".$rating."' WHERE id_user = '".$Iduser."' AND id_local = '".$local."'";
$insert = "insert into g_voto_local (id_local,id_user,valor_voto) values ('".$local."','".$Iduser."','".$rating."')";
}
}