0

I am having trouble with queries, I am using mamp and database connects with sql with not error but I can't query table values, I get nothing with my query code. please help...

<?php
//function.php 
function dbConnect($server,$username,$password,$database){
    $connect = new mysqli($server,$username,$password,$database);
    if($eror=$connect->connect_error){
      die("dbfailure [".$eror."]");
    }//echo "dbConnected";
}

?>

<?php include('./function.php'); dbConnect('localhost','dbtBL','dbtBL','dbtBl');?>
"; } ?>
O.Kevin
  • 11
  • 3

0 Answers0