Re: Call to undefined function: fetchrow
| From: | Luc de Louw | Date: | Sun, 21 Mar 2004 22:17:40 +0000 |
| Subject: | Re: Call to undefined function: fetchrow | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11428@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
[..]
could you paste to use the output of: print_r($result4);some additional info: the mysql log shows just:
040321 23:16:17 2 Connect mail@localhost on mail
2 Init DB mail
Here is the (some kind of large) array output:
db_error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -7 [message] => DB Error: mismatch [userinfo] => SELECT quota FROM domain' [backtrace] => Array ( [0] => Array ( [file] => /usr/share/php/DB.php [line] => 748 [function] => pear_error [class] => db_error [type] => -> [args] => Array ( [0] => DB Error: mismatch [1] => -7 [2] => 1 [3] => 1024 [4] => SELECT quota FROM domain' ) ) [1] => Array ( [file] => /usr/share/php/PEAR.php [line] => 532 [function] => db_error [class] => db_error [type] => -> [args] => Array ( [0] => -7 [1] => 1 [2] => 1024 [3] => SELECT quota FROM domain' ) ) [2] => Array ( [file] => /usr/share/php/DB/common.php [line] => 500 [function] => raiseerror [class] => pear [type] => :: [args] => Array ( [0] => [1] => -7 [2] => [3] => [4] => SELECT quota FROM domain' [5] => DB_Error [6] => 1 ) ) [3] => Array ( [file] => /usr/share/php/DB/common.php [line] => 990 [function] => raiseerror [class] => db_mysql [type] => -> [args] => Array ( [0] => -7 ) ) [4] => Array ( [file] => /usr/share/php/DB/common.php [line] => 949 [function] => executeemulatequery [class] => db_mysql [type] => -> [args] => Array ( [0] => 0 [1] => db_mysql Object ( [connection] => Resource id #7 [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => mail [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => 1 [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => mail [password] => secret [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => mail ) ) ) ) [5] => Array ( [file] => /usr/share/php/DB/common.php [line] => 1140 [function] => execute [class] => db_mysql [type] => -> [args] => Array ( [0] => 0 [1] => db_mysql Object ( [connection] => Resource id #7 [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => mail [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => 1 [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => mail [password] => secret [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => mail ) ) ) ) [6] => Array ( [file] => /srv/www/htdocs/web-cyradm-HEAD/lall.php [line] => 13 [function] => query [class] => db_mysql [type] => -> [args] => Array ( [0] => SELECT quota FROM domain' [1] => db_mysql Object ( [connection] => Resource id #7 [phptype] => mysql [dbsyntax] => mysql [prepare_tokens] => Array ( ) [prepare_types] => Array ( ) [num_rows] => Array ( ) [transaction_opcount] => 0 [autocommit] => 1 [fetchmode] => 1 [_db] => mail [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => DB_Error [_expected_errors] => Array ( ) [features] => Array ( [prepare] => [pconnect] => 1 [transactions] => 1 [limit] => alter ) [errorcode_map] => Array ( [1004] => -15 [1005] => -15 [1006] => -15 [1007] => -5 [1008] => -17 [1022] => -5 [1046] => -14 [1050] => -5 [1051] => -18 [1054] => -19 [1062] => -5 [1064] => -2 [1100] => -21 [1136] => -22 [1146] => -18 [1048] => -3 [1216] => -3 ) [prepared_queries] => [prepare_maxstmt] => 0 [last_query] => [fetchmode_object_class] => stdClass [options] => Array ( [persistent] => 1 [ssl] => [debug] => 0 [seqname_format] => %s_seq [autofree] => [portability] => 0 [optimize] => performance ) [dbh] => [dsn] => Array ( [phptype] => mysql [dbsyntax] => mysql [username] => mail [password] => secret [protocol] => tcp [hostspec] => localhost [port] => [socket] => [database] => mail ) ) ) ) ) [callback] => )