Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/10/2010, 13:51
sebastianossa1
 
Fecha de Ingreso: julio-2010
Mensajes: 18
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: como llamar registro a un select

Hola
que pena la ignorancia pero soy nuevo

ingrese loq ue me dices a:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>

<body>

<select name=" NODO" id="hola">
<option value=" seleccion" selected="selected">Selecciona algo</option>
<?php
$conexion=mysql_connect("localhost","root","")
or die("Problemas en la conexion");
mysql_select_db("c_i",$conexion)
or die("Problemas en la selección de la base de datos");
$resultados=mysql_query("select _id_cliente, _nombre_cliente, _tel_cliente, _dir_cliente
from _clientes",$conexion) or
die("Problemas en el select:".mysql_error());
while ($x=mysql_fetch_array($resultados))




$i=5;
$w=1;

while ($w < $i){ ?>
<option name="hola" value=<? echo "$x[$w]"; ?>Sebas<? echo "Nom: $x[$w] X:$corx[$w] Y:$cory[$w] "; ?></option>
<?php $w=$w+1;
}
echo "</select></p>";
?>

</body>
</html>

Pero aun no me da

Gracias por la atencion prestada