OK I just got a response from one of my provider's higher level technicians.
Here is what he said to me (I changed my DB name, username, etc.):
Quote:
There is some error in the database connection script. You need to manually edit the database connection script. I have uploaded a test script ‘dbtest.php’ under the folder ‘family’ and I was able to connect to database using Server hostname as ‘MY SQL SERVER’ at URL link: MY URL . Please check the test script ‘dbtest.php’ and edit the script ‘page_dbconnection.php’.
This is what dbtest.php contains:
mysql_connect("
MY SQL SERVER", "
USERNAME", "
PASSWORD") or die(mysql_error());
echo "Connected to MySQL
";
mysql_select_db("family") or die(mysql_error());
echo "Connected to Database";
?>
He is telling me I need to take that code, or that info and manually change the page_dbconnection.php file. I did test his dbtest.php and it worked: I was able to connect to my database. But being a noob, I can't figure out where to insert it, or change the page_dbconnection.php file.
Any help would be immensely appreciated!
This is the page_dbconnection.php file contents. Where would I insert that info???
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* Installer database configuration page
*
* See the enclosed file license.txt for licensing information.
* If you did not receive this file, get it at
http://www.fsf.org/copyleft/gpl.html *
* @copyright The XOOPS project
https://xoops.org/ * @license
http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
* @package installer
* @since 2.3.0
* @author Haruki Setoyama
* @author Kazumi Ono
* @author Skalpa Keo
* @author Taiwen Jiang
* @author DuGris (aka L. JEN)
* @version $Id: page_dbconnection.php 2822 2009-02-20 08:50:48Z phppp $
**/
require_once './include/common.inc.php';
if ( !defined('XOOPS_INSTALL') ) { die('XOOPS Installation wizard die'); }
$pageHasForm = true;
$pageHasHelp = true;
$vars =& $_SESSION['settings'];
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
$params = array( 'DB_TYPE', 'DB_HOST', 'DB_USER', 'DB_PASS' );
foreach ( $params as $name ) {
$vars[$name] = $_POST[$name];
}
$vars['DB_PCONNECT'] = @$_POST['DB_PCONNECT'] ? 1 : 0;
}
$error = '';
if ( $_SERVER['REQUEST_METHOD'] == 'POST' && !empty( $vars['DB_HOST'] ) && !empty( $vars['DB_USER'] ) ) {
$func_connect = empty( $vars['DB_PCONNECT'] ) ? "mysql_connect" : "mysql_pconnect";
if ( ! ( $link = @$func_connect( $vars['DB_HOST'], $vars['DB_USER'], $vars['DB_PASS'], true ) ) ) {
$error = ERR_NO_DBCONNECTION;
}
if ( empty( $error ) ) {
$wizard->redirectToPage( '+1' );
exit();
}
}
if ( @empty( $vars['DB_HOST'] ) ) {
// Fill with default values
$vars = array_merge( $vars,
array('DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost',
'DB_USER' => '',
'DB_PASS' => '',
'DB_PCONNECT' => 0,
)
);
}
ob_start();
?>
' . $error . "