标题:asp如何写入access数据库(新手问题)
取消只看楼主
boqon
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2008-1-8
 问题点数:0 回复次数:1 
asp如何写入access数据库(新手问题)
数据库cao.mdb
表名 news
字段 bt nr du
写入字段中,怎么写的?
老大们写个具体的代码给我研究一下呵,谢了
请用
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"")


以下是我内容提交页面!!
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新闻管理系统</title>
</head>

<body>

<div align="center">
    <table border="1" width="800" id="table1" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#00FF00">
        <tr>
            <td bgcolor="#008000">
            <p align="center"><b>新闻管理系统</b></td>
        </tr>
        <tr>
            <td>
            <form method="POST" action="--WEBBOT-SELF--">
                
                <div align="center">
                    <table border="0" width="800" id="table2" style="border-collapse: collapse">
                        <tr>
                            <td>新闻标题</td>
                            <td><input type="text" name="bt" size="20"></td>
                        </tr>
                        <tr>
                            <td>新闻内容</td>
                            <td> </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                            <p align="center">
                            <textarea rows="20" name="nr" cols="88"></textarea></td>
                        </tr>
                        <tr>
                            <td>新闻分类</td>
                            <td><input type="text" name="bu" size="20"></td>
                        </tr>
                    </table>
                </div>
                <p align="center"> </p>
                <p align="center"> </p>
                <p align="center"><input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2"></p>
            </form>
            <p> </td>
        </tr>
    </table>
</div>

</body>

</html>
搜索更多相关主题的帖子: 数据库 access asp 
2008-01-08 12:39
boqon
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2008-1-8
得分:0 
谢谢了!结决了!!

[[italic] 本帖最后由 boqon 于 2008-1-8 17:37 编辑 [/italic]]
2008-01-08 16:41



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-196469-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.121216 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved