Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/04/2008, 10:04
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 11 meses
Puntos: 49
Re: ayudadita para alguien ke comienza en esto

Y de donde obtienes $id? prueba así tu código:

Código PHP:
<?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 $html.""
    
$html.= "<table border = 1><tr><td style='font-weight:bold;'>idejecutivo</td></tr>"
    
$cuantos mysql_num_rows($consulta); 
    for(
$i=0;$i<$cuantos;$i++) 
    { 
          
$arreglo_temporal mysql_fetch_row($consulta); 
          
$html.="<tr><td><a href=Ordendetalle.php?id=$arreglo_temporal[0]"">".$arreglo_temporal[0]."</a></td></tr>"
    }                             
    
$html.= "</table></body></html>"
                echo 
$html;  
     
?>
Saludos.