好多童鞋都因为忘记配ai9me下的useraction文件导致微商城跟微餐饮空白,因为这2个都是调用ai9me下的功能,当然你也要分享你的user表给他咯,不然怎么能读到你的用户信息呢!~~笨!~~~
小插曲哈,上诉错误是因为你用txt编辑的时候保存编码错乱导致的,请重新上传此文件!~~~
好,贴代码
/public_html/wx/public_html/admin2/AI9ME/Lib/Action/useraction.class.php 修下一下代码为你的信息
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
public
function
myconnect()
{
$con = mysql_connect(
"localhost"
,
"root"
,
"数据库密码"
);
mysql_query(
"set names 'utf8'"
);
if
(!$con)
{
die(
'Could not connect: '
. mysql_error());
}
$db_selecct=mysql_select_db(
'管家数据库名称'
,$con);
if
(!$db_selecct)
{
die(
"could not to the database</br>"
.mysql_error());
}
return
$con;
}
|
本文转自 gutaotao1989 51CTO博客,原文链接:http://blog.51cto.com/taoyouth/1364181