Lo que quiero es que al introducir el mes "Septiembre", me muestre en una tabla todos los registros del mes de septiembre con un determinado grupo por decir el "48", se puede???
El codigo es el siguiente:
<?php
require("conexion.php");
require("funciones.php");
$criterio = getParam($_GET["criterio"], "");
$total = 0;
if ($criterio != "") {
//$query = "SELECT * FROM asignar WHERE Grupo like ".sqlValue($criterio."%", "text")." ORDER BY Grupo ASC";
$query = "SELECT asignar.Fecha AND asignar.Grupo from asignar WHERE Fecha like '%{$_GET['criterio']}%'";
//criterio= Grupo y palabra=Fecha
//$query = "SELECT Grupo, Fecha from asignar WHERE Grupo=`{$_GET['criterio']}` LIKE Fecha='%{$_GET['palabra']}%'";
$queEmp = mysql_query($query, $conexion);
$total = mysql_num_rows($queEmp);
}
?>
<form id="frbuscar" name="frbuscar" method="get" action="">
<p>
<input name="criterio" type="text" id="criterio" size="25" value="<?php echo $criterio; ?>" />
<label>
<input type="text" name="Grupo" />
</label>
</p>
<p> <input type="submit" id="btbuscar" value="Buscar" /> </p>
<p>
<?php if ($total > 0) { ?>
</p>
<p> </p>
</form>
<p> </p>
<p><em>Total de Resultados: <?php echo $total; ?></em></p>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>Grupo</th>
<th>Fecha</th>
</tr>
<?php while ($rsEmp = mysql_fetch_assoc($queEmp)) { ?>
<tr>
<td><?php echo $rsEmp['Grupo']; ?></td>
<td><?php echo $rsEmp['Fecha']; ?></td>
</tr>
<?php } ?>
</table>
De ante mano gracias
Me urge....
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)