[DENIED] connect two databases for different scripts

hello 1hackers
i want to ask if there’s a way to connect two different databases for two different scripts like WordPress and another script?

give me the method please with details

if both databases are in same server, you can use something like below (I used PHP code, you can change as per your code):

$host = 'localhost';
$user = 'user';
$pass = 'pass';
$db = 'database1';
$db1 = 'database2';

// Create connection
$conn = mysqli_connect($host, $user, $pass, $db);
$conn1 = mysqli_connect($host, $user, $pass, $db1);

// Check connection
if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
if (!$conn1) {
    die("Connection failed: " . mysqli_connect_error());
1 Like

where to put this code?

either in your script file or in your config file, as per your file structure

i did try this WordPress with other codecanyon script but when I made a test account it didn’t work it said wrong password or username

I wanted to connect my Wordpress here Zaer with this script https://exox.elzaad.com

100 Instagram followers for who helps me to solve this :smile:

What Kind of “help” Queries Are Not Allowed?

We do not allow anyone asking for the legal stuff illegally!

  • How to code this, can you help me with a coding script? I am stuck with code, now what to do? how to crack, find crack/patch, crack this or that <<< Please, avoid asking such deep programming language questions, as there is already a website dedicated for this stackoverflow! :slightly_frowning_face:

Click and read what else we do not allow to ask, read the rules and FAQ for the proper guidance to know do’s and don’ts.

Really? use the search engine, and you will get over 20 methods to grab as much as you can!