Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/01/2011, 15:38
Avatar de AdrianSeg
AdrianSeg
 
Fecha de Ingreso: enero-2010
Mensajes: 595
Antigüedad: 14 años, 3 meses
Puntos: 14
Respuesta: sSQL Fallo al hacer update, Ayuda!

Prueba esto:

Código PHP:
Ver original
  1. <?
  2. include("config.php");
  3.  
  4. $juego=$_GET['id'];
  5.  
  6. $sSQL="UPDATE rank SET votos='votos+1' WHERE id='".$juego."'" or die("Fallo al votar");
  7. mysql_query($sSQL);
  8. include("head.php");
  9. echo'<center><h1>Voto añadido</h1></center>';
  10.  
  11. ?>