<?php
$db_host = "localhost";
$db_user = "user";
$db_pass = "password";
$db_name = "database";
mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db($db_name) or die(mysql_error());
echo "Connected to Database ".$db_name;
?>
Quote
MvE Designs wrote:
Does the connection works outside php-fusion?
So if you modify the code below to your mysql configuration?Code Download source<?php
$db_host = "localhost";
$db_user = "user";
$db_pass = "password";
$db_name = "database";
mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db($db_name) or die(mysql_error());
echo "Connected to Database ".$db_name;
?>
Category Forum
Installation Issues - 8Labels
None yet
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions