conn.php源代码分析

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>

<?php

$conn=mysql_connect("localhost","root","********") or die("数据库服务器连接错误".mysql_error());

%以管理员身份连接数据库服务器,失败则提示数据库连接错误

mysql_select_db("db_pursey",$conn) or die("数据库访问错误".mysql_error());

%选择db_pursey数据库

mysql_query("set names gb2312");

?>

你可能感兴趣的:(C++,c,PHP,mysql,C#)