Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/03/2011, 09:07
Avatar de jotaincubus
jotaincubus
 
Fecha de Ingreso: mayo-2005
Ubicación: Medellin - Colombia
Mensajes: 1.797
Antigüedad: 19 años
Puntos: 394
Respuesta: asiganr variable php con consulta sql

coloca esto en tu codigo:

Código PHP:
$clave $_POST['rec']; 

$conexion mysql_connect("localhost""root"""); 
mysql_select_db("bf2"$conexion); 
$consulta "select recinto_nombre from recinto where Recinto_cod = '$clave' "
$ejecutar mysql_query($consulta$conexion); 

while (
$actual mysql_fetch_array($ejecutar)){
echo 
$actual['recinto_nombre']."<br/>";

__________________
Por que existe gente que no agradece después de que se le ha brindado tiempo y ayuda ???

Última edición por jotaincubus; 09/03/2011 a las 09:07 Razón: error en codigo