Tema: Error PHP
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/05/2008, 09:01
rogerol182
 
Fecha de Ingreso: abril-2008
Mensajes: 27
Antigüedad: 16 años
Puntos: 0
Re: Error PHP

Código:
if($_GET[disposition]==12)
	{
		$var_hi = substr($_POST[hora_cita]);
		$var_hf = substr($_POST[hora_cita]);
		$var_sql = "SELECT id 
		FROM agendacion_citas 
		WHERE 	fecha = '$_GET[fecha_cita]' and
                                hora_inicial = '$var_hi' and
		hora_final = '$var_hf'";						
		$var_res = pg_query($var_con, $var_sql) or die("No se puede ejecutar la consulta ".pg_last_error());
y en el php donde estan esos campos los tengo asi.

<input type="text" id="fecha_cita" name="fecha_cita" size="10">
<input name="hora_cita" type="text" id="hora_cita" value="" size="15">