Skip to content

Instantly share code, notes, and snippets.

<?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 / 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');
@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 / gist:7294443
Created November 3, 2013 20:29
plantilla
$id $fecha
$cliente
$para
@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: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)");
<?php
$fecha = $_POST['fecha'];
$hora = $_POST['hora'];
$nombre = $_POST['nombre'];
$apellido = $_POST['apellido'];
$conexion = mysql_connect("localhost","user","pass");