Obtenga datos de la base de datos con MySQLI

$DBhost = "localhost";
$DBuser = "root";
$DBpassword ="";
$DBname="apifile";

$conn = mysqli_connect($DBhost, $DBuser, $DBpassword, $DBname);

if(!$conn){
    die("Connection failed: " . mysqli_connect_error());
}
$query = mysqli_query($conn,"SELECT * FROM `prop` WHERE propkey='localhost_100100'");
$result = mysqli_fetch_array($query);
var_dump($result['propvalue']);
Amin Arjmand