Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/01/2003, 22:06
Avatar de mveraa
mveraa
 
Fecha de Ingreso: diciembre-2002
Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 21 años, 3 meses
Puntos: 2
ahora pondo el script

<?php
/* header ("cache-control:no-cache,must-revalidate");*/
?>

<title>ejemplo ftp</title>
<html>
<body>

<div align="center"><h1>BUSQUEDA INTELIGENTE</h1></div>
<br>
<br>
<br>
<br>

<?php
$id=mysql_connect("LOCALHOST","elaaa","")or die ("clave fallo");

$conexion=mysql_select_db("elaaa_es_db",$id) or die("no se pudo conectar");
$consulta="SELECT DISTINCT marca from autos order by marca" ;
$res=mysql_query($consulta) or die ("consulta fallo2");
$num=mysql_num_rows($res);

if ($sfile=="")
{




echo "<form action =sel2.php method=\"post\" >";
echo "MARCA:<select name=sfile >";
For ($i=0;$i<$num;$i++)
{
$a=mysql_result($res,$i,0);
/*$b=mysql_result($res,$i+1,0);
$c=mysql_result($res,$i-1,0);*/



/*echo "<option value=\"".mysql_result($res,$i,0)."\">".mysql_resu lt($res,$i,0);*/
echo "<option value=\"".$a."\">".$a;


}


echo "<input type=submit name=boton value=ACEPTAR>";
ECHO "</FORM>";

}

if ($boton1=="recoger" )
{
echo "$sfile";
echo "$file1";
}


mysql_close($conexion); "si agrego estaline me sale el error"

?>


<body>
<html>