Answers for "echo mysql query in php"

PHP
1

php echo sql result

$sql = "select * FROM tableName;";

$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) {
  echo $row['columnName']; 
}
Posted by: Guest on August-19-2021

Browse Popular Code Answers by Language