Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/04/2008, 10:24
usermax
(Desactivado)
 
Fecha de Ingreso: diciembre-2006
Mensajes: 529
Antigüedad: 18 años, 2 meses
Puntos: 11
Re: ayudadita para alguien ke comienza en esto

TA MAL!!

Ademas estás ubicando

$arreglo_temporal = mysql_fetch_row($consulta); dentro del ciclo for. Esta mal.

Debe quedar asi:
Código PHP:
    $db mysql_connect("localhost","root"); 
    
mysql_select_db("confirmacion",$db); 
    
$texto_consulta "SELECT id_ejecutivo FROM ejecutivo"
    
$consulta mysql_query($texto_consulta$db) or die (mysql_error()); 
    
$html "<html><head><title>Herramienta de Confirmacion</title></head><body>"
    
$html.= "<table border = 1><tr><td style='font-weight:bold;'>idejecutivo</td></tr>"
    
 while(
$row mysql_fetch_assoc($consulta)) {
 
 
$html.="<tr><td><a href=Ordendetalle.php?id=".$row['id_ejecutivo'].">".$row['id_ejecutivo']."</a></td></tr>";
 
 }
                          
    
$html.= "</table></body></html>"
    echo 
$html