Code:
<?php
$con = mysqli_connect("localhost", "root", "");
// if statement with connection failed
if (!$con) {
die("Could not connect: " . mysql_error());
}
return $con;
$sql = 'SELECT * FROM config';
$result = sql_query($dbcon, $sql);
while($row = mysqli_fetch_assoc($result)){
$tbdev["sitename"] = $row["sitename"];
}
?>