diff options
| author | James Atkinson <thefinn@users.sourceforge.net> | 2001-05-13 00:27:04 +0000 |
|---|---|---|
| committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-05-13 00:27:04 +0000 |
| commit | 07148f9f31b27bb054b0c516df1e74a8a52e9375 (patch) | |
| tree | 03960070d351e8e132cce4ccd69c62ab358e4125 /phpBB/memberlist.php | |
| parent | 3f4ea178d63fc8752d7cfb12935cd33ee970589a (diff) | |
| download | forums-07148f9f31b27bb054b0c516df1e74a8a52e9375.tar forums-07148f9f31b27bb054b0c516df1e74a8a52e9375.tar.gz forums-07148f9f31b27bb054b0c516df1e74a8a52e9375.tar.bz2 forums-07148f9f31b27bb054b0c516df1e74a8a52e9375.tar.xz forums-07148f9f31b27bb054b0c516df1e74a8a52e9375.zip | |
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
Diffstat (limited to 'phpBB/memberlist.php')
| -rw-r--r-- | phpBB/memberlist.php | 5 |
1 files 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.<br>Reason: ".$error['message']"<br>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 +?> |
