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. |
#2
|
|||
|
|||
You need to make $upcomingevents a value and not just the name of the plugin
|
#3
|
|||
|
|||
Is this what you mean? It didn't work, so I'm probably writing something wrong.
Code:
$upcomingevents = mysql_fetch_array( $result ); I also tried this: (it also didn't work) Code:
$row = mysql_fetch_array[ $result ); $upcomingevents = $row['title']; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|