Find Jobs
Hire Freelancers

php mysql connect switch

$10-30 USD

Completed
Posted over 4 years ago

$10-30 USD

Paid on delivery
Need to fix the following so that if $dbr does not work I can automatically use $db connection define('DB_HOST','[login to view URL]'); define('DB_USER','root'); define('DB_PASS',''); define("DB_NAME","db"); define('DB_HOST_READ','[login to view URL]'); define('DB_USER_READ','root'); define('DB_PASS_READ',''); define("DB_NAME_READ","db"); $db = new mysqli(DB_HOST, DB_USER, DB_PASS , DB_NAME); $dbr = new mysqli(DB_HOST_READ, DB_USER_READ, DB_PASS_READ , DB_NAME_READ); if ($dbr->connect_error) { //$dbr = $db; //this does not work } if ($db->connect_error) { die(); exit(); }
Project ID: 20838918

About the project

13 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello. I can help you with switching database connection if one($dbr) fails. We can discuss further details on chat.
$19 USD in 0 day
5.0 (222 reviews)
7.7
7.7
13 freelancers are bidding on average $26 USD for this job
User Avatar
Hello. I read your requirement carefully. I'm very interested your project. My main skills is PHP. If you assign to me this project, you can get a cool result. please contact me. thanks. best requards.
$20 USD in 7 days
5.0 (23 reviews)
6.1
6.1
User Avatar
PHP, mysql expert here i checked your code. i will help you right away. looking forward from you soon Thank you Divya J
$30 USD in 1 day
5.0 (67 reviews)
5.4
5.4
User Avatar
I believe in providing good quality code and services with security. I am a Web Security Researcher & Bug Bounty Hunter at HackerOne, BugCrowd, BountyFactory and many other Independent Bug Bounty Programs Reported Security Vulnerabilities to Google, Facebook, Twitter, TCS, DigitalOcean, Magento, Nexmo and many other Companies Listed in more than 30 Company's Hall of Fame for reporting Security Vulnerabilities and reported more than 200 Security Vulnerabilities Web Security : OWASP, BurpSuite, Kali Linux, BugCrowd VRT, MetaSploit + HTML5, CSS3 + jQuery, Javascript, Ajax + Angular JS, React JS + Website design + Bootstrap, Responsive design + PHP + ColdFusion + MYSQL + Magento + Joomla + Laravel + Wordpress + Dot Net + CodeIgniter Development + User Interface / IA, Graphic Design, Logo design + PSD to HTML + Web Security + Penetration Testing + Ethical Hacking + Linux : CentOS, RedHat, Ubuntu + Windows Server + Vulnerability Assessment
$30 USD in 1 day
5.0 (103 reviews)
5.4
5.4
User Avatar
Dear client, how have you been? I've read your project description carefully. Presenting this proposal with 100% confident. How about discuss in chat? Waiting for your reply. Best regards.
$50 USD in 1 day
4.5 (27 reviews)
4.7
4.7
User Avatar
Hi I will fix this database issue for your website. I will fix this right now thanks waiting for your response.
$35 USD in 1 day
3.9 (28 reviews)
5.0
5.0
User Avatar
Dear Client, I review your coding. can you give me one chance to check? I am full time of freelancer having 6 years of experience in core php development. Kindly discuss with me for more details. I am waiting for your reply. Thanks & regards Bhaskar
$22 USD in 1 day
4.5 (16 reviews)
3.3
3.3
User Avatar
HI, sir. ****************** I'm a senior web&app developer with over 8 years of experience and very strong in this database. If you want to work with me, I am sure I can deliver you a wonderful result as you want. Please send me a message so that we can discuss more. ****************** Best regards.
$20 USD in 7 days
5.0 (3 reviews)
1.2
1.2

About the client

Flag of ITALY
CORREZZANA, Italy
5.0
31
Payment method verified
Member since Dec 27, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.