$link=mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
if(!$link) {
$_SESSION['connMeg'] = "Can't connect datacase!";
}else{
$_SESSION['connMeg'] = "Success connect!";
}
mysql_select_db(SAE_MYSQL_DB);
其实连接sinaapp数据库的格式就像上上面一样固定了,用他给的常量,复制到你的代码就能运行。