Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/01/2011, 15:46
Avatar de Shaito
Shaito
 
Fecha de Ingreso: agosto-2010
Mensajes: 383
Antigüedad: 13 años, 8 meses
Puntos: 37
Respuesta: sSQL Fallo al hacer update, Ayuda!

Cita:
Iniciado por AdrianSeg Ver Mensaje
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. ?>
No me funcionó... siquiera en localhost pero gracias
__________________
Shaito Hiraga - Diseñador CSS