From: Chris S. <san...@us...> - 2005-07-04 16:15:13
|
Update of /cvsroot/stack/stack-1-0/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30071/scripts Modified Files: stackDatabase.php Log Message: Index: stackDatabase.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/stackDatabase.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** stackDatabase.php 3 Jul 2005 16:24:23 -0000 1.26 --- stackDatabase.php 4 Jul 2005 16:15:02 -0000 1.27 *************** *** 78,82 **** if (!$connection=mysql_connect($host,$user,$pswd)) { $msg = mysql_error(); ! echo "<b>MYSQL Error ".mysql_errno().": ".mysql_error()."</b>"; die(); } --- 78,82 ---- if (!$connection=mysql_connect($host,$user,$pswd)) { $msg = mysql_error(); ! echo "<b>Could not connet to the MYSQL database on host '$host', as user '$user'. The attempt to connect generated the MYSQL Error ".mysql_errno().": ".mysql_error()."</b>"; die(); } *************** *** 88,91 **** --- 88,93 ---- if(0 == $result) { echo '<b>MYSQL Error '.mysql_errno().': '.mysql_error().'</b>'; + echo "<p>The query which generated this error is <pre>$query</pre></p>"; + echo "<p>You are trying to connect to the database '$stackdb' on host '$host' as user '$user'.</p>"; } else if (0 == @mysql_num_rows($result)) |