Hey all-
I found another strange problem. I am creating a mysql database
connection like this:
@ $db = mysql_pconnect(host, user, pass);
mysql_select_db(dbname);
Now, I have a function that inside uses mysql_list_fields()
function getFields($table, $dbname) {
$fields = mysql_list_fields($dbname, $table);
return $fields;
}
The problem is this always errors saying it cant find the database.
However, if I ran a mysql_query("select * from users") function, it
would work fine.
Any ideas on what the deal is with this function??
Thanks,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php