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
You can replace the function mysql_field_name to mysqli_fetch_field_directand use it like the following:
mysql_field_name
mysqli_fetch_field_direct
$colObj = mysqli_fetch_field_direct($result,$i); $col = $colObj->name; echo "Coluna: ".$col;