October 26th, 2013, 12:37 PM
Php database help
I need one help in my php file.. I have one database information in php file where form query go but when website lost database connection it shows error system is busy.. Is it Possible i add 2 database informations if one get lost query pass to another database if both lost then it show system is busy.. If you want i will show u my coding please reply..
October 26th, 2013, 10:56 PM
A basic if/then/else should take care of this. You would enter this where you place your initial connection. Initially, you would make an attempt at the desired server. Then, with the IF portion, you would check the error/status of that connection attempt. IF it is successful, and doesn't provide such error, THEN do as define, ELSE use the second connection.
He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.