When I use mysql_list_fields() in a plain PHP file, everything is fine.
The problem comes when I use that command within a method of a class I'm writing.
E.g.
class CDB
{
function ListFields($db, $tablename)
{
$result=mysql_list_fields($db, $tablename, $this->DBLink);
.....
}
}
I've tried mysql_listfields() instead, same results. Any clue?