Thread: Is this right?
View Single Post
  #1  
Old 9th July 2018, 07:36
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default Is this right?
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"];
}
?>
Reply With Quote