Search found 3 matches

by Techbot
Fri Mar 21, 2008 6:55 pm
Forum: Joombie Coding Q/A
Topic: Accessing an external database from a joomla module
Replies: 5
Views: 3207

Re: Accessing an external database from a joomla module

I'm guessing this issue is only relevant to modules not components. I'm using one of the custom code components to access the same database and it works fine. Is it possible getinstance is a 1.5 only function? **************************** getInstance (line 194) Returns a reference to the global Data...
by Techbot
Fri Mar 21, 2008 3:49 pm
Forum: Joombie Coding Q/A
Topic: Accessing an external database from a joomla module
Replies: 5
Views: 3207

Re: Accessing an external database from a joomla module

Thanks Rogue. This is my version of the above code translated to joomeese. Unlike the above which works but breaks joomla database connectivity, this fails to work at all. No doubt a typo or some syntax. I've done some decent searching and beyond the link you provided, there is actually nothing else...
by Techbot
Fri Mar 21, 2008 2:38 am
Forum: Joombie Coding Q/A
Topic: Accessing an external database from a joomla module
Replies: 5
Views: 3207

Accessing an external database from a joomla module

On a joomla 1.14 site the code is fairly straightforward, <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $conn = mysql_connect(localhost,JoeBlogs,secret) ; mysql_select_db(external_database) ; $result = mysql_query("SELECT artist, title from historylis...