Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/01/2014, 02:50
santi2892009
 
Fecha de Ingreso: mayo-2012
Mensajes: 363
Antigüedad: 12 años
Puntos: 0
Respuesta: no inserta en tabla datos x y

Integracion.php
Código PHP:
Ver original
  1. <?php //Lugar en el World Map function ubicacion_mapa($usuario) { $x = rand(1,100); $y = rand(1,100); $consulta = mysql_query("SELECT * FROM ex_mapa2 WHERE x = '$x' and y = '$y'"); $array = mysql_fetch_assoc($consulta); $existe = $array["usuario"]; if($existe == "-") { $nombre_aldea = "Aldea de $usuario"; $tipo = "ciudad"; mysql_query("UPDATE ex_mapa2 SET usuario = '$usuario', nombre = '$nombre_aldea', tipo = '$tipo' WHERE x = '$x' and y = '$y'");
  2.  
  3. ubicacion_mapa($usuario); } } ?>