1
tayling
Odd - attaching databses error
  • 2005/10/8 23:08

  • tayling

  • Just popping in

  • Posts: 86

  • Since: 2002/1/3 7


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

2
tayling
Re: Odd - attaching databses error
  • 2005/10/8 23:12

  • tayling

  • Just popping in

  • Posts: 86

  • Since: 2002/1/3 7


Sorry for posting twice - I was trying to edit the error

Cheers

Tony

Login

Who's Online

461 user(s) are online (371 user(s) are browsing Support Forums)


Members: 0


Guests: 461


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits