
posdata: también tengo los vídeos tutoriales que cesar tiene en esta pagina si hay alguno que me pueda ayudar díganme cual por que los he visto todos y no encuentro el que me sirva.
Escrito 06 diciembre 2011 - 09:43
Escrito 06 diciembre 2011 - 09:50
Escrito 07 diciembre 2011 - 08:28
<?php
require_once("../connections/localizador.php");
$sql="SELECT * FROM memorandum";
$res=mysql_db_query($bd,$sql,$con);
while ($reg=mysql_fetch_array($res))
{
echo ($reg["numero_memo"]);
echo ($reg["remitente"]);
echo ($reg["destinatario"]);
echo ($reg["fecha_emision"]);
echo "<br>";
}
?>
<form id="form1" name="form1" method="post" action="reporte2.php"> <table width="500" border="1"> <tr> <input type="radio" name="radio" id="radio" value="radio" /> </tr> <tr> <input type="radio" name="radio2" id="radio2" value="radio2" /> </tr> <tr> <input name="desde" title="Ingrese una Fecha de Inicio para la Búsqueda" type="text" id="desde" onclick="popUpCalendar(this,form1.desde,'dd/mm/yyyy');" size="20" /> </td> </tr> <tr> </label> </tr> <tr> Enviados <input type="checkbox" name="checkbox" id="checkbox" /> Recibidos <input type="checkbox" name="checkbox2" id="checkbox2" /> En Proceso <input type="checkbox" name="checkbox3" id="checkbox3" /> Procesados <input type="checkbox" name="checkbox4" id="checkbox4" /> Devueltos <input type="checkbox" name="checkbox5" id="checkbox5" /> </tr> <tr> <input type="submit" name="button" id="button" value="Generar" /> </tr> </table> </form>
Escrito 07 diciembre 2011 - 08:32
Escrito 07 diciembre 2011 - 09:15
<?php
require_once("../connections/localizador.php");
$sql="SELECT count( * ) AS numero
FROM `memorandum`
WHERE id_status = "1"";
$res=mysql_db_query($bd,$sql,$con);
while ($reg=mysql_fetch_array($res))
{
echo ($reg["numero_memo"]);
echo ($reg["remitente"]);
echo ($reg["destinatario"]);
echo ($reg["fecha_emision"]);
echo "<br>";
}
?>
Escrito 07 diciembre 2011 - 09:20
Escrito 07 diciembre 2011 - 10:06
Escrito 07 diciembre 2011 - 10:10
Escrito 07 diciembre 2011 - 10:16
Escrito 07 diciembre 2011 - 02:07
<?php
$con=mysql_connect("localhost","root","");
$bd=mysql_select_db("localizador");
$sql="SELECT COUNT (*) FROM memorandum WHERE id_status=1";
$res=mysql_db_query($bd,$sql,$con);
{
echo "$res";
}
?>
Escrito 07 diciembre 2011 - 02:59
$row = mysql_fetch_row($res);
echo $row[0];
Escrito 08 diciembre 2011 - 07:39
Escrito 08 diciembre 2011 - 08:16
$res = mysql_query($sql,$con);
$row = mysql_fetch_array($resultados);
echo $row[0];
Escrito 08 diciembre 2011 - 01:52
echo $row[0];
Escrito 12 diciembre 2011 - 08:39