1
Hi all
I am using XOOPS for a site that serves a double purpose for the clients - car rentals and carsales - I have created a database for each and attach the rental one on loading XOOPS site.
I have two includes for each database - identical except for the database name, the first one for rentals is working fine the second an exact copy except for the name and database.
=====================================================
If i use the following (trying to debug)
1. the rental include:
include("../../../includes/db_connect.inc.php");
$urlsite = $HTTP_HOST;
echo "".$urlsite."";
?>
I get the page with no errors but obviously NO DATA.
If I use (the SALES database include)
include("../../../includes/db2_connect.inc.php");
$urlsite = $HTTP_HOST;
echo "".$urlsite."";
?>
I get the errors
Warning [Xoops]: Smarty error: unable to read resource: "db:tinycontent0_index.html" in file C:\websites\tcvr\html\class\smarty\Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "db:tinycontent0_index.html" in file C:\websites\tcvr\html\class\smarty\Smarty.class.php line 1084
========================================================
Is there some sort of rule about reusing database connections or attaching more that two databases?
I have also tried chagning the second include to have different variable names
Any help gratefully appreciated
Cheers
Tony Ayling
Brisbane Australia