after "mysql_select_db" (User Defined Tag) -> "unable to read resource"
Posted: Fri Aug 24, 2007 3:52 am
Hi guys,
I have a problem with including php code via an user defined tag.
I created a tag that includes mysql connection code.
If I use the user defined tag, the other resources like a global_content tag can not be load correctly.
"Smarty error: unable to read resource: "globalcontent..."
The problem is the php function mysql_select_db I think. Just a normal echo command (for example) works fine.
There must be a problem with this mysql function.
Anybody with same experiences or solutions?
Thanks,
Phil
I have a problem with including php code via an user defined tag.
I created a tag that includes mysql connection code.
If I use the user defined tag, the other resources like a global_content tag can not be load correctly.
"Smarty error: unable to read resource: "globalcontent..."
The problem is the php function mysql_select_db I think. Just a normal echo command (for example) works fine.
There must be a problem with this mysql function.
Anybody with same experiences or solutions?
Thanks,
Phil