Ronny
05-26-2009, 05:19 PM
I'm using mysqli for vBulletin 3.8.2.
My question is what is the best way to query data from another DB outside the vBulletin DB? I do a few sql querys inside the vBulletin DB and then also one like the example, so i just have to query this outside DB once between a few other queries. My test query dose not work :(
$stats = $db->query_read("SELECT
ID,
name,
last_event,
connection_time,
last_change
FROM stats.v1_stats_Users
WHERE ID >= 50
LIMIT 5
");
"stats" is the database outside vBulletin. So far also no luck with mysqli::select_db.
Can anyone help me please?
Thanks in advance!
--------------- Added 1243378781 at 1243378781 ---------------
Stupid me ... for 3 hours i read the same code and did not see my mistake :(
Sorry guys!
My question is what is the best way to query data from another DB outside the vBulletin DB? I do a few sql querys inside the vBulletin DB and then also one like the example, so i just have to query this outside DB once between a few other queries. My test query dose not work :(
$stats = $db->query_read("SELECT
ID,
name,
last_event,
connection_time,
last_change
FROM stats.v1_stats_Users
WHERE ID >= 50
LIMIT 5
");
"stats" is the database outside vBulletin. So far also no luck with mysqli::select_db.
Can anyone help me please?
Thanks in advance!
--------------- Added 1243378781 at 1243378781 ---------------
Stupid me ... for 3 hours i read the same code and did not see my mistake :(
Sorry guys!