Error PHP - Query was empty
Publicado por Nallely (11 intervenciones) el 26/05/2014 19:53:11
Hola, no logro encontrar el error me podrían por favor ayudar.
el error me lo marca de la siguiente manera:
SELECT * FROM alertas as a, programas as p, tipo_medio as t WHERE a.id_programa = p.id_programa AND p.id_tipo_medio = t.id_tipo_medio ORDER BY fecha DESCQuery was empty no me esta leyendo los campos de mi formulario ayuda por favor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?
include "funciones.php";
?>
<!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=iso-8859-1"/>
<title>Documento sin título</title>
<link href="estilo_1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
<p><img src="logo_rtc.jpg" width="210" height="100" id="logo"></p>
<p><img src="logo_segob.jpg" width="240" height="79" id="logo2" /></p>
</div>
<form action="busqueda_alerta.php" method="post">
<h1 align="center"> Búsqueda de Alertas Radio y Televisión</h1>
<table align="center">
<tr>
<td>Fecha Inicio:</td>
<td><input type="date" name="fecha1"/></td>
</tr>
<tr>
<td>Fecha Termino:</td>
<td><input type="date" name="fecha2"/></td>
</tr>
<tr>
<td>Programa:</td>
<td><select name="prog">
<datalist>
<? $rs = db1();?>
<option value="0">Seleccione un Programa</option>
<? while ($row =mysql_fetch_array($rs)){?>
<option value="<? echo $row[id_programa]?>"><? echo $row[nom_programa]?> </option>
<? } ?>
</option>
</datalist>
</select></td>
</tr>
<tr>
<td>Medio: </td>
<td><select name="medio">
<datalist>
<? $rs1 = bd2();?>
<option value="0">Seleccione un Medio</option>
<? while ($row1 =mysql_fetch_array($rs1)){?>
<option value="<? echo $row1[id_tipo_medio]?>"><? echo $row1[nombre_medio]?> </option>
<? } ?>
</option>
</datalist>
</select>
</td>
</tr>
<tr>
<td>Onomástico:</td>
<td><input type="text" name="palabra1" placeholder="Buscar" /></td>
</tr>
<tr>
<td>Tema:</td>
<td><input type="text" name="palabra2" placeholder="Buscar" /></td>
</tr>
</table>
<input type="submit" value="Buscar" id="boton" />
<a href="exportar_excel.php?fecha=<? echo $_POST['fecha1']?>&fech=<? echo $_POST['fecha2']?>&prog=<? $_POST['prog']?>&tipo_medio=<? $_POST['medio']?>&tema=<? echo $_POST['palabra1']?>&desc=<? echo $_POST['palabra2']?>"> ---> Exportar a un Documento en Excel </a>
el error me lo marca de la siguiente manera:
SELECT * FROM alertas as a, programas as p, tipo_medio as t WHERE a.id_programa = p.id_programa AND p.id_tipo_medio = t.id_tipo_medio ORDER BY fecha DESCQuery was empty no me esta leyendo los campos de mi formulario ayuda por favor
Valora esta pregunta


0