hola gracias por contestar tengo la consulta en MySql, ya hice la prueba y mi consulta seria asi "SELECT * FROM tabla WHERE month(`FechaNac`) = 06(aca me deberia dar la variable que elegi del mes) ".
el codigo de mi formulario es el siguiente:
Código:
<html>
<head xmlns="">
<title></title>
<link href="" type="text/css" rel="stylesheet" /> <style type="text/css">
<!--
.Estilo2 {color: #FF9900}
-->
</style>
</head>
<body xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="Cheques1" enctype="multipart/form-data" method="post" action="fecha.php" target="_self" name="Cheques">
<div align="center">
<div align="center"><span class="Estilo2">
<style type="text/css">
<!--
.Estilo2 {color: #0033CC}
body {
background-color: #000000;
}
body,td,th {
color: #CCCC33;
}
.Estilo4 {color: #000000}
body {
background-color: #000000;
}
.Estilo6 {
color: #F5BB0A;
font-weight: bold;
}
.Estilo7 {color: #F5BB0A; font-weight: bold; font-size: 24px; }
.Estilo8 {font-size: 22px}
-->
</style>
<img height="66" width="75" alt="" src="images/LaurelGif.gif" /></span>
<label><img height="71" width="277" src="images/cabecera.jpg" alt="" /> <img height="66" width="75" src="images/LaurelGif.gif" alt="" /></label>
<div align="center">
<table border="0" align="center" style="WIDTH: 405px; HEIGHT: 54px">
<tbody>
<tr>
<td width="413">
<div align="center" class="Estilo7">
<p><font size="5">CUMPLEAÑOS DEL MES</font></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div align="center">
<table border="0" width="33%">
<tbody>
<tr>
<td width="59%">
<div align="right"><span class="Estilo6">Mes Actual: :</span></div> </td>
<td width="41%"><label>
<select name="Meses" id="select">
<option>Enero</option>
<option>Febrero</option>
<option>Marzo</option>
<option>Abril</option>
<option>Mayo</option>
<option>Junio</option>
<option>Julio</option>
<option>Agosto</option>
<option>Septiembre</option>
<option>Octubre</option>
<option>Noviembre</option>
<option>Diciembre</option>
</select>
</label></td>
</tr>
</tbody>
</table>
</div>
<div align="center">
<table border="0" width="517">
<tbody>
<tr>
<td height="50" width="516">
<div align="center">
<table border="0" width="517">
<tbody>
<tr>
<td height="28" width="516">
<div align="center"> <input type="button" id="enviar" onClick="consultaCh();" name="enviar" value="Consultar" /> <input type="button" onClick="self.close()" value="Cerrar" /> </div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" bordercolor="#FFCC33" border="1" bgcolor="#000000" align="center" width="73%" id="Exportar_a_Excel">
<tbody>
<tr>
<td width="13%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">ID</div>
</td>
<td width="32%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">CODIGO DEL PERSONAL</div>
</td>
<td width="21%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">NOMBRE </div>
</td>
<td width="16%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">AREA</div>
</td>
<td width="8%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">DIA</div>
</td>
<td width="10%" valign="top" class="texto Estilo4">
<div align="center" class="Estilo3 Estilo6 Estilo2">AÑOS</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="contenido"></div>
</div>
<div align="center"></div>
</div>
</form>
</body>
</html>
mi base de datos tiene lo siguientes campos
Código:
CREATE TABLE `cumpleaños` (
`ID` mediumint(5) NOT NULL,
`Nombre` varchar(50) COLLATE latin1_general_ci NOT NULL,
`FechaNac` date NOT NULL,
`Area` varchar(50) COLLATE latin1_general_ci NOT NULL,
PRIMARY KEY (`ID`)
tengo mi conexion.php
no se que mas quisieras que te muestre, todavia no empiezo con el php ya que soy nuevo esto por eso pido ayuda.