Hola, me gustaria saber si ven algo mal aqui:
Código PHP:
case "habitaculo":
if ($villa_estructuras_cfg_cost_pid_habitaculo<=$recursos[0] and $villa_estructuras_cfg_cost_mad_habitaculo<=$recursos[1])
{
if ($villa_estructuras_cfg_max_habitaculo< $estructuras["habitaculo"])
$insertar= mysql_query("UPDATE villa_estructuras SET '$_POST[estructura]' = '$_POST[estructura]' + 1
WHERE id= '$_COOKIE[juego_jugador_id]'");
else
header("location: ../index.php?pagina=estructuras_edificar&proceso=erroneo&descripcion=Ya no puedes edificar mas");
}
else
header("location: ../index.php?pagina=estructuras_edificar&proceso=erroneo&descripcion=Recursos insuficientes");
break;
Ya que no funciona, el resultado de la sentencia que se almacena en $insertar devuelve error.
Gracias