|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-27 03:18 UTC] alexmerz@php.net
[2002-08-27 04:10 UTC] stephan at wanderinghorse dot net
[2002-08-27 04:25 UTC] alexmerz@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
DB_Result::tableInfo() docs say as follows: ------------------ DB_Result::tableInfo() -- returns meta data about the result set Description mixed tableInfo (DB_Result $result [, mode $mode]) ... ------------------ That is misleading, however: it cannot be called statically. $res = $db->query( "select foo from bar" ); DB_Result::tableInfo( $res ); fails with "Fatal error: Call to a member function on a non-object in DB.php on line 828" It must be called on an object: $res = $db->query( "select * from hits where false" ); $ar = $res->tableInfo(); print_r( $ar );