![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/03/2014, 08:57
|
| | Fecha de Ingreso: octubre-2012
Mensajes: 135
Antigüedad: 12 años, 4 meses Puntos: 8 | |
Respuesta: Problema con UPDATE +1 se incrementa al recargar pagina. la segunda parte tendría que mirar si existe un post con punto.
<?php
if(isset($_POST["punto"])){
$link = mysql_connect("localhost", "root");
$insert="UPDATE peliculas SET voto =(voto+1) WHERE id='2'" ;
mysql_query($insert, $link) or die(mysql_error());
}
?> |