I have a way to get the name of the columns of a table. It works fine but now I want to update to the new mysqli ? (I tried the mysqli_fetch_field but I don\'t know how to a
$sql = "SELECT * from myTable"; $res = mysqli_query($con,$sql); $row = mysqli_fetch_assoc($res); $fields = array_keys($row); var_dump($fields);