pues esto es lo q me pasa me se como definir la variable $row ;
xq lo q me pasa es q cuando doy al enlace de mapa como no a cojido el usuario pues me sale este en la url:
http://prntscr.com/2uvc7talguien me puede hechar una mano
os dejo el codigo:
Código PHP:
Ver original<html>
<head><title>Principal: GRANJA</title>
<link href="estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<h1>juego</h1></center>
<table align="center">
<tr>
<td style="vertical-align: top">
<center><h3>Menú</h3></center>
<ul>
[COLOR="DarkRed"]<?php
$consulta = mysql_query("SELECT * FROM mapa2 WHERE usuario = '$row[7]'"); $x = $row['x'];
$y = $row['y'];
echo "<li><a href='mapa2.php?x=$x&y=$y'>Mapa</a></li>";
?>
[/COLOR]
<li><a href='mensajeria.php?id=band'>Mensajería</a></li>
<li><a href='ver_ofertas.php'>Ver ofertas</a></li>
<li><a href='nueva_oferta.php'>Publicar ofertas</a></li>
<li><a href='ranking.php'>Ranking</a></li>
<li><a href='perfil.php'>Perfil</a></li>
<li><a href='cuenta.php'>Cuenta</a></li>
<li><a href='salir.php'>Salir</a></li>
</ul>
</td>
</html>