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;