Skip to content

Instantly share code, notes, and snippets.

<?php
$fecha = $_POST['fecha'];
$hora = $_POST['hora'];
$nombre = $_POST['nombre'];
$apellido = $_POST['apellido'];
$conexion = mysql_connect("localhost","user","pass");
@ChrisGehm
ChrisGehm / gist:7259858
Last active December 27, 2015 03:29
primer hueco
<?php
include ('connect.php');
$primerdisponible = "";
$sql1 = mysql_query("SELECT MIN(Numero) AS Numero
FROM historial_inventario_cajas
WHERE Numero NOT IN (SELECT Numero
FROM inventario_cajas)");
@ChrisGehm
ChrisGehm / gist:7294417
Last active December 27, 2015 08:09
formgenerar.php
<?php
include("../includes/connect.php");
if(!isset($_GET['id']))
{
exit("Error");
}
$id = $_GET['id'];
@ChrisGehm
ChrisGehm / gist:7294443
Created November 3, 2013 20:29
plantilla
$id $fecha
$cliente
$para
@ChrisGehm
ChrisGehm / gist:7294477
Created November 3, 2013 20:32
generarrecibo.php
<?php
$id="";
$fecha = "";
$cliente = "";
$para = "";
$concepto = "";
$responsable = "";
$link = "";
// Lee la plantilla
$plantilla = file_get_contents('plantilla.rtf');
@ChrisGehm
ChrisGehm / generarrecibo.php
Created November 3, 2013 23:00
formgenerar.php
<?php
$id="";
$fecha = "";
$cliente = "";
$para = "";
$concepto = "";
$responsable = "";
$link = "";
// Lee la plantilla
$plantilla = file_get_contents('plantilla.rtf');
<?php
$id="1";
$fecha = "29/12/2002";
$cliente = "Carlitos Bala";
$para = "Ernesto Sabato";
$concepto = " ... con cariño de carlitos .. una aspiradora";
$responsable = "Carlos Flavio Jacinto Bala";
$link = "http://www.poringa.net";
// Lee la plantilla
$plantilla = file_get_contents('plantilla.rtf');
@ChrisGehm
ChrisGehm / gist:7360980
Last active December 27, 2015 17:19
tabla.php
<?php
//lista indexada por período y cliente
if ($periodo!="" AND $busca!="")
{
$s = 0;//inicializo $s = 0 para el acumulador
/////////////
$busca=$_POST['buscar'];
$periodo=$_POST['periodo'];
$sqldoinicial = 0;
<?php
include("../includes/connect.php");
$denominacion = "";
$id = "";
$mes = date("m");
$año = date("Y");
if(!isset($_GET['id']))
{
exit("No se argument&oacute; correctamente");
<form method="post" action="addenvio.php">
<tr>
<td>Fecha *</td>
<td>Cliente *</td>
<td>Para</td>
<td>Concepto *</td>
<td>Responsable *</td>
<td>Enviado Por *</td>
<td>Receptor</td>
<td>Observaciones</td>