rlib-1.1.4
rlib_add_datasource_postgre($rlib, "pgsql", "host=localhost
dbname=databaseName user=postgres");
example:
//cities.php
$rlib = rlib_init();
rlib_add_datasource_postgre($rlib, "pgsql", "host=localhost
dbname=rlib_examples_latin user=postgres");
rlib_add_query_as($rlib, "pgsql", "select * from city", "cities");
rlib_add_report($rlib, "cities.xml");
rlib_set_output_format_from_text($rlib, $format);
rlib_execute($rlib);
header( rlib_get_content_type($rlib));
rlib_spool($rlib);
rlib_free($rlib);
jua...@mo... escreveu:
> Hi, I use the rlib report writer witth postgres and we can't make
> the connection to the db. I need information to call the function
> rlib_add_datasource_postgre(,,). Thanks.
> Juan
>
> ******************************************************************************************
> Estas son las 5 razones para usar el 0909 2 4 6 8 del Portal.
> Hace click aqui
> http://www.montevideo.net.uy/hnnoticiaj1.cgi?81
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Rlib-users mailing list
> Rli...@li...
> https://lists.sourceforge.net/lists/listinfo/rlib-users
>
--
Everton Luis Berz
Nucleo de Sistemas :: FACCAT - Faculdades de Taquara
+55 51 541 6600 - R.624
ICQ 7807919
|