Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv3503
Modified Files:
first.php
Log Message:
Error trap a key database error message, in order to hopefully remedy the situation.
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** first.php 29 Jun 2003 04:09:42 -0000 1.15
--- first.php 15 Aug 2003 18:04:05 -0000 1.16
***************
*** 63,67 ****
\$sqlpassword = '" . $_POST["sqlpassword"] . "';
\$sqldatabase = '" . $_POST["sqldatabase"] . "';
!
\$sqlconnection = mysql_connect(\"\$sqlserver\",\"\$sqluser\",\"\$sqlpassword\");
--- 63,69 ----
\$sqlpassword = '" . $_POST["sqlpassword"] . "';
\$sqldatabase = '" . $_POST["sqldatabase"] . "';
! if(function_exists(\"mysql_connect\") == false) {
! die(\"Your version of PHP has not been compiled with MySQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request MySQL support for your version of PHP.\");
! }
\$sqlconnection = mysql_connect(\"\$sqlserver\",\"\$sqluser\",\"\$sqlpassword\");
|