Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
I'm hoping someone can help me solve this proble. I'm running UBB Threads 6.5 and using the IIP 6.5 index page mod. As you know, in the UBBT Control Panel you can add "HTML Includes" which includes common Header code you can put in there. It says you can include PhP code as well as HTML. I had been running HTML code in there to place a single banner at the top og the page and its been working fine. Now, however, I have a program called PhPBannerNew which is a banner rotator program. It uses a database to pull out banners that can either be stored in the database or on the server.

PROBLEM:
When I include the banner invocation code in my HTML Include code for my header, I get errors of the page associated with other IIP features where the index page tries to access other another database. Could this be due to my banner code opening another (banner) database, which then closed whatever database IIP had open? Any ideas how to solve this problem?

PS: If I put the code on a plain HTML page it works fine

Thanks,
Basil

Sponsored Links
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Post the error please

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
Never mind, I fixed it. I just need to re-open a database that was being closed when my banner database was open. The error I was gettting was something about "not a valid resource" when trying to do a querry. Well, it wasn't valid because the DB that was being querried had been closed.

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Glad I could help

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
[]ChAoS said:
Glad I could help [/]

I just got lucky and figured it out by accident

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I was gonna say the only database IIP even uses id the threads database and if your mod is closing that you would see the error other places...


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)