Module DB Access - Joomla! Forum - community, help and support
hello all,
i developing module joomla! site have run bit of problem. want module connect , use data second database (not joomla!), when use mysql_connect() appears remove other modules on page; while module seems perform fine method, of other modules disappear. i've read in few places there problems multiple database connections i'm not sure how solve this. ideas? appreciated.
i developing module joomla! site have run bit of problem. want module connect , use data second database (not joomla!), when use mysql_connect() appears remove other modules on page; while module seems perform fine method, of other modules disappear. i've read in few places there problems multiple database connections i'm not sure how solve this. ideas? appreciated.
zeratuelx wrote:hello all,
i developing module joomla! site have run bit of problem. want module connect , use data second database (not joomla!), when use mysql_connect() appears remove other modules on page; while module seems perform fine method, of other modules disappear. i've read in few places there problems multiple database connections i'm not sure how solve this. ideas? appreciated.
you can use jdatabase::getinstance object connect different database.
http://api.joomla.org/joomla-framework/ ... etinstance
ian
Comments
Post a Comment