Problem with ExternalDB Plugin

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
art_y2k
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Mar 05, 2008 8:49 pm

Problem with ExternalDB Plugin

Post by art_y2k » Sun Jan 10, 2010 10:30 pm

Hi,

I'm using ExternalDB plugin for adding an extra DB connection to my Joomla website and ran into the following problem.

I wrote a small module to get data from the database.
The database connection is working good as it seems (no errors). when I try to get data from the database, the result is 1.

Joomla version 1.5.15 Stable
PHP version 5.2.9

The code:
$xdb = new externalDatabase();
$xdbo = $xdb->getDb();
$query = "SELECT * FROM New_Data ORDER BY ID DESC LIMIT 1";
$xdbo->setQuery($query);
$row = $xdbo->loadAssoc();
print_r($row);

The print_r returns 1 instead of the row.

Anyone has an idea??

Locked

Return to “Extensions for Joomla! 1.5”