订阅到邮箱
订阅本博客
-
近期文章
近期评论
文章归档
分类目录
标签
链接表
月归档:八月 2009
PHP与ACCESS数据操作
首先,数据库连接。以下语句为示例语句,请根据实际情况修改 $conn = @new COM(“ADODB.Connection”) or die (“ADO Connection faild.”); $connstr = “DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=” . r......阅读全文
PHP与MySQL数据处理
首先进行数据库连接,方法:http://www.xefan.cn/archives/66653.html。以下语句为示例语句,请根据实际情况修改 数据查询 $sql=”select * from user”; $result=mysql_query($sql); while($row=mysql_fetch_ar......阅读全文
PHP与MySQL连接
<?php //连接MySQL $db=mysql_connect(‘主机名,本地主机用localhost,远程用IP地址’,'帐号’,'密码’); mysql_select_db(data);//选择数据库 mysql_query(“set names ‘utf8̸......阅读全文
ASP与MySQL数据处理
首先连接数据库,方法:http://www.xefan.cn/archives/66045.html。以下语句为示例语句,请根据实际情况修改 查询数据: Set RS = conn.Execute(“SELECT * FROM user”) While Not RS.EOF ‘......阅读全文
ASP与MySQL连接
首先你的服务器得安装有MySQL ODBC驱动,下载地址:http://cn.ziddu.com/download/370567/mysql-connector-odbc-noinstall-5.1.5-win32.zip.html 数据库链接 Dim connstr, conn , rs ‘SERVER......阅读全文
ASP删除ACCESS数据
首先连接数据库,方法:http://www.xefan.cn/archives/65914.html。 ID = 3 sql = “delete from test where ID=”&ID Conn.Execute(sql) 阅读全文
ASP更新ACCESS数据
首先连接数据库,方法:http://www.xefan.cn/archives/65914.html。 法一: ID = “4″ nm= “www.xefan.cn” pw = “xefan.cn” sql=”update test set password=’”&pw&”‘,username=......阅读全文
ASP往ACCESS插入数据
首先连接数据库,方法:http://www.xefan.cn/archives/65914.html。往数据库的test表中字段名为username、password插入数据。 法一: username = “www.xefan.cn” password = “xefan.cn” sql=”select * from ......阅读全文
ASP从ACCESS读取数据
首先连接数据库,方法:http://www.xefan.cn/archives/65914.html。从数据库的test表中读取字段名为username、password的数据。 sql = “select * from test” rs.Open sql,conn,1,1 Do While Not rs.Eof &......阅读全文