Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/05/2012, 09:35
rocnel
 
Fecha de Ingreso: diciembre-2007
Mensajes: 27
Antigüedad: 16 años, 4 meses
Puntos: 0
Respuesta: Consulta a dos tablas

LO ESTOY INTENTANDO CON ESTE CODIGO PERO NO ME DA NINGUN RESULTADO.

<?php $username = $_COOKIE['funeraria'];
$mivariable = "Select ataud from usuarios where email = '$username'";
$resultado = mysql_query($mivariable,$conex);
$qry = mysql_fetch_array($resultado);

$codigo = mysql_query("select * from servicios WHERE codigo = '$qry'",$conex) or die (mysql_error());
while ($ress = mysql_fetch_array($codigo)) {
echo "$ress[nombre]";

}
?>