Hi, i got this error. Please help.

Fatal error: Call to undefined function mysqli_list_fields()

This is my code,


include 'dbFunctions';

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


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

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>;

Recommended Answers

All 2 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.