数据库链接代码(链接多个数据库)

| |
[不指定 November 6, 2007 07:59 | by jed ]


$conn1 = mysql_connect("xxxxx", "xxx", "xx");
mysql_select_db("xxxxx", $conn1);
$conn2 = mysql_connect("yyyyy", "yyy", "yy");
mysql_select_db("yyyy", $conn2);

$sql = "select ....";
$result = mysql_query($sql, $conn1);
$sql = "up...";
mysql_query($sql, $conn2);

数据库技术 | 评论(0) | 引用(0) | 阅读(737)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]