From: Chris S. <san...@us...> - 2005-07-04 16:24:25
|
Update of /cvsroot/stack/stack-1-0/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1604/scripts Modified Files: stackDatabase.php Log Message: Index: stackDatabase.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/stackDatabase.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** stackDatabase.php 4 Jul 2005 16:15:02 -0000 1.27 --- stackDatabase.php 4 Jul 2005 16:24:11 -0000 1.28 *************** *** 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(); } --- 78,82 ---- if (!$connection=mysql_connect($host,$user,$pswd)) { $msg = mysql_error(); ! echo "<b>Could not connet to MYSQL on host '$host', as user '$user'. The attempt to connect generated the MYSQL Error ".mysql_errno().": ".mysql_error()."</b>"; die(); } *************** *** 84,87 **** --- 84,92 ---- $db = mysql_select_db($stackdb,$connection); + if (!$db) { + echo "<b>Could not connet to the MYSQL database '$stackdb' (on host '$host', as user '$user'). The attempt to connect generated the MYSQL Error ".mysql_errno().": ".mysql_error()."</b>"; + die(); + } + $result = mysql_query($query); |