Friends please, I need help, Until yesterday, I did not have a problem printing records that I have in my informix database from php using pdo. But yesterday I came across a type registry (text), and it printed me (resource id #) As I said any other type of text I have no problem. Next I will put them as I call a table with the following structure: PROOF
codigo int
clave char(12)
registro varchar(10)
contenido text
Php code
$ls_query = ("select * from PRUEBA");
$ls_res_usr = $ls_conn->query($ls_query);
$ls_result = $ls_res_usr->fetchAll();
foreach($ls_result AS $ls_res_usr)
{
$id_cod= trim($ls_res_usr[0]);
$id_cla= trim($ls_res_usr[1]);
$id_reg= trim($ls_res_usr[2]);
$id_con= trim($ls_res_usr[3]);
echo $id_cod . "-".$id_cla . "-".$id_reg . "-".$id_con;
}
unset ($ls_res_usr);
And the result I get is this:
1-1AB-La Paz-(Resource id #2)
4-3FG-La Paz-(Resource id #3)
5-1AB-Santa Cruz-(Resource id #4)
18-5TY-Oruro-(Resource id #5)
24-3wE-Sucre-(Resource id #6)
...
And really, you should show me a text Please your help.