|    
			
				15/03/2007, 18:58
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: diciembre-2005 
						Mensajes: 37
					 Antigüedad: 19 años, 10 meses Puntos: 0 |  | 
  |  ayuda con una varible  
  hice un formulario donde meto un rango de fecha y me envia a un archivo llamado anticipos.php pero la variable cliente no me la respeta, como le paso la viariable al archivo anticipos.php para que me respete el clienteeste es mi formulario
 
 $num_cliente = $_GET['cliente'];
 // conexión con MySQL
 $link = mysql_connect ("localhost", "root", "root");
 
 $db = mysql_select_db ("mi base de datosl", $link);
 
 $strqry = "SELECT * FROM clientes where numero =\"".$num_cliente."\"";
 
 $qry = mysql_query($strqry);
 $row = mysql_fetch_assoc($qry);
 
 ?>
 <p align="center"><font color="#006699" size="2" face="Verdana, Arial, Helvetica,
 sans-serif"><?php print $row ["nombre"]; ?></font></p>
 
 <div align="center">
 <div align="center">
 <form method = "post" action = "anticipos.php">
 <font color="#006699" size="2" face="Verdana, Arial, Helvetica,
 sans-serif">FECHA INICIAL :<input type="text" name="fecha_inicial"><br>
 <font color="#006699" size="2" face="Verdana, Arial, Helvetica,
 sans-serif">FECHA FINAL :<input type="text" name="fecha_final"><br>
 <input type="Submit" name="enviar" value="Aceptar Informacion">
 <?php
 ?>
 
 y esta es la parte de mi archivo php donde llamo las fecha y al cliente
 
 $num_cliente = $_GET['cliente'];
 $fecha_inicial = $_POST['fecha_inicial'];
 $fecha_final = $_POST['fecha_final'];
 
 $strqry = "SELECT * FROM anticipo where cliente =\"".$num_cliente."\"";
 $strqry.= "and fecha between '$fecha_inicial' and '$fecha_final'";
 
 echo $strqry;
 
 $qry = mysql_query($strqry);
 while ($row = mysql_fetch_assoc($qry)){
 ?>
 
 no encuentro el problema al darle un echo solo me da esto
 
 SELECT * FROM anticipo where cliente =""and fecha between '2006-01-01' and '2006-12-31'
 osea si me toma las fecha pero no el cliente
 
 ayuda pliss
     |