The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Query data from a different database?
I am trying to display a list of events from Joomla, which is on a different database and server. I am new to writing VB plugins, but here is what I have so far (real information replaced with *****):
Code:
$this->dbobject->connect('**databasename***','***hostname***','3306','***user***','***password***',false); $result = $db->query_read("SELECT title FROM jos_events"); or die(mysql_error()); $row = mysql_fetch_array( $result ); echo "Event Title: ".$row['title']; Any help would be appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|