From 7a5645dde7e2d7032d0a76927c80b3a7002a9458 Mon Sep 17 00:00:00 2001 From: wainstead Date: Sun, 2 Jul 2000 22:12:05 +0000 Subject: [PATCH] Added two echo statements to report mysql_error in OpenDataBase(). I did this while installing phpwiki on Sourceforge, and it was how I figured out what I was doing wrong. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@141 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- wiki_mysql.php3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wiki_mysql.php3 b/wiki_mysql.php3 index 90cf2d2c4..3f1d71070 100644 --- a/wiki_mysql.php3 +++ b/wiki_mysql.php3 @@ -1,4 +1,4 @@ - + \n"; exit(); } if (!mysql_select_db($mysql_db, $dbc)) { echo "Cannot open database, giving up."; + echo "MySQL error: ", mysql_error(), "
\n"; exit(); } -- 2.45.0