el mes lo guarda en ins_fecing de esta forma añomesdia
Código PHP:
<?
$fecha = date("d-m-Y"); // fecha actual
$ano = date("Y"); // Año actual
$mes = date("m"); // Mes actual
$dia = date("d"); // Dia actual
$time = time(); // Timestamp Actual
$hoy1=$ano.$mes.$dia;
$hoy2=$dia.-$mes.-$ano;
//$sel_sql = "¿from am_inspeccion where (ins_estado LIKE 'A') AND (ins_fecing1 < '$hoy') order by ins_folio desc";
/////////////////Inspecciones//////////////////////
$result=mysql_query ("SELECT * FROM (am_inspeccion,am_rl_equins) where ins_folio=rei_folio and (ins_fecing = '$hoy1') and (ins_proyecto LIKE '$f_proyecto') ORDER BY ins_folio desc");
echo"<h3 align=\"center\">Control diario de Inspecciones ".$hoy2."</h3>";
echo "<hr>";
echo "<table border=0 width=100%><tr>";
echo "<tr>";
echo "<td></td><td></td><td><strong>Folio</td><td><strong>Fecha</td><td><strong>Empresa</td><td><strong>Ingresado por </td><td><strong>Equipo a inspeccionar</td><td><strong>Estado</td></td><td><strong>Intentos</td></tr>
</tr>";
echo "<tr>";
echo "<td colspan=\"9\"><hr></td>";
echo "</tr>";
while($row=mysql_fetch_row($result)){
$row[1] = substr($row["1"],6,2)."/".substr($row["1"],4,2)."/".substr($row["1"],0,4);
echo "<tr>
<td><td><a href=\"control_mes.php?id_insmod=$row[0]\" target=\"_parent\"><img src=\"am_modules/downloads/derec.gif\" width=16 height=16 alt=\"click\" border=0 align=left></a></td>
</td><td>$row[0]</td><td>$row[1]</td><td>$row[14]</td><td>$row[15]</td><td>$row[33]</td><td>$row[13]</td><td>$row[26] de 3</td> </tr>";
}
echo"</table>
";
echo "<hr>";
?>