Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2005
Posts: 1
B
stranger
stranger
B Offline
Joined: Apr 2005
Posts: 1
When I put two off the addon scripts into one .php page it tells me it cannot use the same SQL class to complete the query. I have tried placing the include files in different directories, but no luck. Any ideas?

I am trying to use ubbtnews.php and ubbttopthreads.php on the same page.

Joined: Jan 2004
Posts: 56
P
journeyman
journeyman
P Offline
Joined: Jan 2004
Posts: 56
you might try changing the require statement in the php code to requireonce (check syntax not sure of exact usage) for each script

Joined: Jun 2006
Posts: 182
A
member
member
A Offline
Joined: Jun 2006
Posts: 182
require_once

Joined: Jun 2006
Posts: 346
J
enthusiast
enthusiast
J Offline
Joined: Jun 2006
Posts: 346
rem out this path as follows


// -----------------------------
// End of the variables section
// require_once ("$path/main.inc.php");


--
Website Development and Management
www.jcswebdev.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
2 members (Ruben, ahmed047), 799 guests, and 143 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)