From 07148f9f31b27bb054b0c516df1e74a8a52e9375 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Sun, 13 May 2001 00:27:04 +0000 Subject: [PATCH] Re-added the error message and query echo to DEBUG error message PLEASE do not remove it, it is very helpfull when debugging errors git-svn-id: file:///svn/phpbb/trunk@276 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/memberlist.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 53e92fccc8..ff34af94af 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -83,7 +83,8 @@ if(!$result = $db->sql_query($sql)) { if(DEBUG) { - error_die(SQL_QUERY, "Error getting memberlist.", __LINE__, __FILE__); + $error = $db->sql_error(); + error_die(SQL_QUERY, "Error getting memberlist.
Reason: ".$error['message']"
Query: $sql", __LINE__, __FILE__); } else { @@ -187,4 +188,4 @@ if(($selected_members = $db->sql_numrows($result)) > 0) } include('includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>