<?php
session_start();
error_reporting(0);
header("Access-Control-Allow-Origin: *");
$servername = "localhost";
$username = "schoolro_attendance-business-accounts";
$password = "attendance-business-accounts";
$dbname = "schoolro_attendance-business-accounts";
$conn = mysqli_connect($servername, $username, $password, $dbname);
$uniqueid=$_SESSION['UniqueId'];
$query=mysqli_query($conn, "SELECT * FROM businesses_account WHERE UniqueId= '$uniqueid'");
while($row=mysqli_fetch_assoc($query)){
$id = $row['id'];
$uniqueid =$row['UniqueId'];
$schoolid =$row['Businessid'];
$_SESSION["BusinessImage"] = $row['Image'];    
$image =$_SESSION["BusinessImage"];
$msgg = $row['Image'];   
$businessname =$row['BusinessName'];
$businessini =$row['Business_Initials'];
$address =$row['Address'];
$location = $row['Location'];
$email =$row['Email'];
$telephone =$row['Telephone'];
$mobile =$row['Mobile'];
$mobile2 =$row['Mobile2'];
$phone = "".$telephone." / ".$mobile." / ".$mobile2."";
$server_username = $row['Server_Username'];
$server_password = $row['Server_Password'];
$db_name = $row['Database_Name'];
$server_username = $row['Server_Username'];
$server_password = $row['Server_Password'];
$databasename = $row['Database_Name'];
$servername = "localhost";
$username = "torsuric_maker";
$password = "jesusislord";
$dbname = "torsuric_schoolrobot";
$servername = "localhost";
$username = $server_username;
$password = $server_password;
/*$dbname = 'schoolrobot';*/
$dbname = $databasename;
}

// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);

?>
