<?php

$con = mysqli_connect('localhost', 'root', '');

// Check the connection
if (!$con) {
    die("Connection failed: " . mysqli_connect_error());
}

mysqli_select_db($con, 'unitcargologistics');

$s = "select * from client_details"; 
$acct = "select * from consignment_details"; 

// Execute queries
$result = mysqli_query($con, $s);
$cd = mysqli_query($con, $acct);

// Check query execution
if (!$result || !$cd) {
    die("Query failed: " . mysqli_error($con));
}

// Now you can use $result and $cd in your code.
?>