Hi, i got this error. Please help.

Fatal error: Call to undefined function mysqli_list_fields()

This is my code,

<?php

include 'dbFunctions';

$fields = mysqli_list_fields("fyp", "criteria", $link);
$columns = mysqli_num_fields($fields);

?>

<form method="post" action="doSelectCriteria.php">;
<select name = criteria>;

<?php
for ($i = 0; $i < $columns; $i++) {
echo "<option value='".mysqli_field_name($fields, $i)."'>";
echo mysqli_field_name($fields, $i);
}
echo "</select>";
?>
<input name="btnsubmit" value="Submit" type="submit"></p>;
</form>

That function does not exist. There is a function called mysql_list_fields though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.