Singleton DB - Multiple Database

singleton is a well known php db class that by default only works for one database. When you call the object a second time it ignores it and just uses the first. It will return no link_id found in the singleton debug reply as shown here on our test [url removed, login to view] file: [url removed, login to view]

If you read the BOTTOM of this thread [url removed, login to view] talks about that problem and offers some ideas for solving. However, the solves they suggest seem to remove some of the benefits of singleton.

I have also heard of a class called 'multiton' which seems to be the multiple db version of singleton. Perhaps this is exactly what we need. There are various writeups on it including those here: [url removed, login to view] and here: [url removed, login to view]

My goal is to be able to utilize the singleton class (or multiton that extends singleton) while also being able to switch to a different database. It is ok if we switch from one to another and then back again as long as both calls can be made in the same file as shown in the included [url removed, login to view] file.

Note: Any changes you make to the [url removed, login to view] file must be carefully documented so we know what changed and how it might effect our codebase.

I need a very easy end result tutorial within the [url removed, login to view] file that makes it easy and clear on how to call 2 different databases while utilizing the singleton code we've already got in place.

We will supply the sql code to create 2 test databases and the testing [url removed, login to view] file as well as the [url removed, login to view] class file.

Навички: MySQL, PHP

Деталі: singleton multiple databases php, php singleton multiple databases, php singleton switch databases, my sql databases, my sql create database, index tutorial, how to read index, benefits of mysql, php singleton multiple, singleton database multi, singleton php works, singleton multiple database, php multiple singleton, writeups, remove object, php db, multiple], db, class index found, php class found, base calls, testing call, php class index found, mysql object, multiple database

Про роботодавця:
( 57 відгуки(-ів) ) Anacortes, United States

ID Проекту: #870209



Hello, I'm PHP expert. i can do your work now.

$50 USD за 1 день
(19 відгуків(-и))

5 фрілансерів(-и) у середньому готові виконати цю роботу за $64


--Hello Sir, Please check your pm. Thanks.--

$30 USD за 1 день
(69 відгуків(и))

Hi. I can focus on this task. Please check PM.

$50 USD за 0 дні(-в)
(18 відгуків(и))

Hello. I am interested in your project. I can do it as you want. Please check PMB.

$40 USD за 1 день
(0 відгуків(и))

This is from fbmasoft working since 2008. This is to inform you that we always offer to work for quality and usability. we have competent employees to work with us. Our recent project is specticals and many others with Більше

$150 USD за 7 дні(-в)
(0 відгуків(и))