PHP 4.0 Bug #8120: mysql_list_fields() returns no result

From: Date: Tue, 05 Dec 2000 16:14:02 +0000
Subject: PHP 4.0 Bug #8120: mysql_list_fields() returns no result
Groups: php.dev 
Request: Send a blank email to php-dev+get-40143@lists.php.net to get a copy of this message
From: davidg@kmcoinc.com Operating system: Windows 2000 PHP version: 4.0.3pl1 PHP Bug Type: MySQL related Bug description: mysql_list_fields() returns no result I tried using the code snippet in bug #5750 but couldn't get any results: $link = mysql_connect($dbserver,$database, 'root', 'mypwd'); $result = mysql_list_fields($database,"meta", $link); print "\nResult is :".$result; $num = mysql_num_fields($result); for($i=0;$i<$num;$i++) { $name = mysql_field_name($result,$i); $type = mysql_field_type($result,$i); echo "$name $type\n"; $result is always undefined. I'm using Windows2000, MySQL 3.23.24-beta, and Apache. I know the database exists and the table "meta" exists because they are used in many other pages for DHTML generation. Thanks Dave -- Edit Bug report at: http://bugs.php.net/?id=8120&edit=1

« previous php.dev (#40143) next »