|
From: Edgar P. <pi...@ca...> - 2006-07-20 22:02:43
|
Hi Mr. Bob..
Ok, good, give me some errors:
RLIB: xmlParseError
RLIB: Failed to load a report file [reck_ckbancos.xml]
RLIB: Content type code unknown
Warning: Cannot modify header information - headers already sent by =
(output
started at /var/www/html/cheques/cons_ckctas.php:24) in
/var/www/html/cheques/cons_ckctas.php on line 25
-Edgar Picado
-------------------------------------------------------------------------=
---
------
Hi,
Change
rlib_set_output_parameter($this->_rlib, "debugging", "yes");
To
rlib_set_output_parameter($rlib, "debugging", "yes");
- Bob
On Thu, 2006-07-20 at 14:44 -0600, Edgar Picado wrote:
> Thanks Michiel and Bob for your reply,
>=20
> Ok, I will start again, because nothing happens with the code that I=20
> have, or you send me.
>=20
> My new code is like the one on the example:
>=20
> <?
> session_start();
> $_SESSION['pagina'] =3D "consultas";
> include("../includes/valida.php");
>=20
> include("../includes/conexbase.php");
> $link=3Dconectarse();
>=20
> dl ("rlib.so");
> =20
> $format =3D "html";
> $sql_host =3D "host";
> $sql_users =3D "user";
> $sql_password =3D "user";
> $sql_database =3D "database";
> =20
> $rlib =3D rlib_init();
> =20
> rlib_add_datasource_mysql($rlib, "mysql", $sql_host, $sql_users,=20
> $sql_password, $sql_dabatase); rlib_add_query_as($rlib, "mysql",=20
> "select * from ckbancos", "ckbancos"); rlib_add_report($rlib,=20
> "reck_ckbancos.xml"); rlib_set_output_format_from_text($rlib,=20
> $format); rlib_set_output_parameter($this->_rlib, "debugging",=20
> "yes"); rlib_execute($rlib);
> header( rlib_get_content_type($rlib));
> rlib_spool($rlib);
> rlib_free($rlib);
>=20
> ?>
>=20
> AND give me the following errors:
>=20
> Warning: rlib_set_output_parameter() expects parameter 1 to be=20
> resource, null given in /var/www/html/cheques/cons_ckctas.php on line=20
> 23
>=20
> Warning: Cannot modify header information - headers already sent by=20
> (output started at /var/www/html/cheques/cons_ckctas.php:23) in=20
> /var/www/html/cheques/cons_ckctas.php on line 25
>=20
> Just only that information appears!
>=20
> Thanks !
>=20
> Edgar Picado
|