小弟之前都是用AMAZON的主机
最近GANDI SSL续约送了3个月的S+
就想说试着用用看
把手边的专案丢上了Simple Hosting
之前还再三确认过没问题
但一丢上去DB就连不到了
在phpMyAdmin上面可以拿到东西,所以确定不是帐号权限问题
下附小弟的CODE
<?php
$servername = "localhost";
$username = "root";
$password = "";
$db_port = '3306';
$db_name = 'db_manage';
$ID = $_COOKIE['ID'];
$con = mysql_connect($servername, $username);
mysql_select_db($db_name, $con);
mysql_query ("set character_set_client='utf8'");
mysql_query ("set character_set_results='utf8'");
mysql_query ("set collation_connection='utf8_general_ci'");
if ($con->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
拿到的ERROR_LOG是
Table 'db_manage.USER' doesn't exist
想请问是不是小弟哪里没有调到设定呢?