Posted in June 5, 2009 ¬ 12:00 pmh.
Toltecatl
Function to create dinamically a valid INSERT INTO SQL instruction, using an array as any parameter and iterating over him to extract the name and values to use it as field names and field values. This function uses pg_send_prepare and pg_send_execute php built-in functions and shows in a detail how to use them.
Read the rest of this entry »
Posted in May 28, 2009 ¬ 6:18 pmh.
Toltecatl
Primero, un poco de contexto… En el jale tengo que hacer un query para un mini-reporte que servirá de guía para “X” area, así que hice un query usando la siguiente instrucción:
*El SGBDR es PostgreSQL
SELECT pi.anio,pi.proyecto,pp.area,m.meta,c.promesa ,c.avance,c.comentarios,((c.avance / c.cantidad ) * 100) as porcentaje
FROM piezas pi FULL JOIN participantes_proyecto pp
ON pi.proins_clave_anio = pp.proins_clave_anio
AND pi.id = pp.id [...]
Read the rest of this entry »
Posted in May 14, 2009 ¬ 5:41 pmh.
Toltecatl
Ya tenía rato sin postear y qué mejor que retomar el posting en el blog con la siguiente noticia, que para mi es importante:
En este preciso momento se está haciendo la demostración del software que he estado programando desde Octubre pasado, estoy muy nervioso, se que funcionará bien, pero no todo está terminado, como sea, [...]
Read the rest of this entry »