~marcelo-escobal/geined/Alianza

« back to all changes in this revision

Viewing changes to prueba.php

  • Committer: Cualquier Desarrollador
  • Date: 2010-01-29 21:15:22 UTC
  • Revision ID: desarrollo@marte-20100129211522-u97qh9o90mhdap04
Importación inicial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
include("funciones.php");
 
3
include("datos.php");
 
4
$sql = "SELECT * FROM transacciones";
 
5
$res = mysql_query($sql);
 
6
while($fil = mysql_fetch_array($res)){
 
7
        $fecha = mysql_a_fecha($fil['fecha']);
 
8
        echo "Fecha: $fecha";
 
9
        $mes = substr(strval($fecha),3,2);
 
10
        echo "----------- Mes: $mes";
 
11
        echo "</br>";
 
12
}
 
13
?>