The Arcive of vBulletin Modifications Site. |
|
database question Details »»
|
|||||||||||||||||||||||||
I want to include a random entry from a table in another database. My script returns the random entry just fine, but when I call it from vBulletin it doesn't work.
Here is the error I get from vBulletin: Code:
Warning: 1 is not a valid MySQL-Link resource in /home/virtual/site19/fst/var/www/html/discussion/admin/db_mysql.php on line 120 Here is the script (with the userid and password removed): PHP Code:
Code:
// get common page vars require "***edited path to the file ***/common.php"; // get Did You Know getDidYouKnow($didyouknow); Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Got it, mysql_select_db was the solution.
|
|
#3
|
|||
|
|||
|
you got it ? how ?
i have the same problem , please post your solution code here ! |
|
#4
|
|||
|
|||
|
Just use mysql_select_db to reselect your forum database when you exit your routine
|
![]() |
|
|