还有就是 我在我的电脑上测试时 网站网站完全没有问题的 当然在我的机子上数据库连接文件是
<?php
$conn=mysql_connect("localhost","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?>
上传后改成
<?php
$conn=mysql_connect("justfree.com","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?> 请高手们帮帮我啊~!谢谢了~!
<?php
$conn=mysql_connect("localhost","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?>
上传后改成
<?php
$conn=mysql_connect("justfree.com","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?> 请高手们帮帮我啊~!谢谢了~!
远程服务权限的嘛!!
上传后的MySQL连接地址不用变啊??<?php
$conn=mysql_connect("localhost","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?>你变成justfree.com会导致远程连接,没有权限的话就连接不了了.不改变localhost上传后,这个localhost代表你的服务器而不是你本地的机器.
怎么N多贴都回这个高手?加我QQ 吧 289184118
我想请你帮我学习php
$conn=mysql_connect("localhost","lilinqing_root","test") or die("数据库服务器连接错误".mysql_error());
mysql_select_db("lilinqing_test",$conn) or die("数据库访问错误".mysql_error());
mysql_query("set names gb2312");
?>改成localhost还是不对啊 ~!真恼火啊 ·!