Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/06/2013, 11:12
samito111
 
Fecha de Ingreso: abril-2012
Mensajes: 106
Antigüedad: 12 años
Puntos: 2
Respuesta: Guardar dato de Base de Datos en variable

Código PHP:
Ver original
  1. $sql = mysql_query("SELECT Latitud FROM 'Recinte' as r JOIN Latitud as la ON r.ID_Latitud = la.ID_Latitud JOIN Longitud as lo ON r.ID_Longitud = lo.ID_Longitud WHERE r.Sala = '".$adreca_recinte."'");
si tu consulta esta bien solo te faltaria esto:


Código PHP:
Ver original
  1. $row=mysql_fetch_array($sql);
  2. echo  $row['Latitud'];//aqui muestras la latitud