From 0351ea060916eeb721cf760f3189a75efcf8ddcf Mon Sep 17 00:00:00 2001 From: administrador User Date: Wed, 28 Jan 2009 21:31:10 +0100 Subject: [PATCH] Combobox_CatorcenasConPresencia() : Mostrar catorcenas en orden cronologico. --- include/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/database.php b/include/database.php index 9bff7fc..ea3a5a9 100755 --- a/include/database.php +++ b/include/database.php @@ -378,7 +378,7 @@ class MySQLDB } function Combobox_CatorcenasConPresencia ($nombre="catorcena_presencia", $codigo=NULL, $OnChange) { - $q = "SELECT DISTINCT catorcena FROM ".TBL_MUPI_FACES." WHERE catorcena <=".Obtener_catorcena_siguiente()." AND codigo_pedido IN (SELECT codigo_pedido FROM ".TBL_MUPI_ORDERS." WHERE codigo='".$codigo."');"; + $q = "SELECT DISTINCT catorcena FROM ".TBL_MUPI_FACES." WHERE catorcena <=".Obtener_catorcena_siguiente()." AND codigo_pedido IN (SELECT codigo_pedido FROM ".TBL_MUPI_ORDERS." WHERE codigo='".$codigo."') ORDER BY catorcena;"; $result = mysql_query($q, $this->connection); /* Error occurred, return given name by default */ $num_rows = mysql_numrows($result); -- 2.11.4.GIT