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