返回文章列表
0 字
· 1 分钟
新浪Sae数据库连接
<?php
$con = mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
if(!$con){ die('could not connect:'.mysql_error()); }mysql_select_db(SAE_MYSQL_DB,$con);
//$con=mysql_connect("w.rdc.sae.sina.com.cn:3307","root","123456")or die("mysql连接失败");
//mysql_select_db("app_ralcenxx1")or die("db连接失败");
//mysql_set_charset("utf-8");PHP5.2后的函数
mysql_query('set names utf8');
?>
评论
无需注册,填写昵称即可评论 · 阅读 — 次