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
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
2 members (Geoff, 1 invisible), 522 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)