| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 351 人关注过本帖
标题:求助:数据库问题
取消只看楼主 加入收藏
cxyang
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2006-8-10
收藏
 问题点数:0 回复次数:3 
求助:数据库问题
各位前辈:
前台数据改变,为什么后台数据不变,这是为什么
搜索更多相关主题的帖子: 数据库 
2006-08-22 14:40
cxyang
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2006-8-10
收藏
得分:0 
是这样的,后台数据库的某项不能设置为"1"或"0",都显示为空
2006-08-22 14:46
cxyang
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2006-8-10
收藏
得分:0 
<%
set myrs=server.CreateObject("adodb.recordset")
sql="select p.* from t_news_purpose p,t_news_sort t where t.id=p.newsort and t.newsort like '%信息指南%' and p.release='1' and p.is_mx='1'  and  (p.is_tb='0' or p.is_tb is null) order by p.infoclsindex,p.id desc"
myrs.open sql,conn,1,1
if not myrs.eof then
%>
                            <table width="100%" height="432" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                              <tr>
                                <td  valign="top" bgcolor="#FFFFFF"><SCRIPT language=JavaScript>
                          <!--//                          
var version = "other"                          
browserName = navigator.appName;                        
browserVer = parseInt(navigator.appVersion);                          
                          
if (browserName == "Netscape" && browserVer >= 3) version = "n3";                          
else if (browserName == "Netscape" && browserVer < 3) version = "n2";                          
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";                          
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";                          
                          
function marquee1()                          
{                          
    if (version == "e4"){                          
    document.write("<marquee behavior=scroll direction=up width=100% height=432 scrollamount=1 scrolldelay=60 onmouseover='this.stop()' onmouseout='this.start()'>")                          
    }                          
}                          
                          
function marquee2()                          
{                          
    if (version == "e4"){                          
    document.write("</marquee>")                          
    }                          
}                          
                          
//-->                          
                            </SCRIPT>
                                    <SCRIPT language=JavaScript>marquee1();</SCRIPT>
                                    <%do until myrs.eof %>
                                     
                                  ·<a href="../docc/newsmain.asp?id=<%=myrs("id")%>" target="_blank"><%=myrs("title")%></a><br />
         <img src="../images/shixian1_12_1.jpg" width="148" height="6"><br />
         
          <%
                      myrs.movenext
                    loop
                  %>
                  
                                                              </td>
                              </tr>
                              
                            </table>
                            <%end if%>
2006-08-22 14:57
cxyang
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2006-8-10
收藏
得分:0 
我想让两个页面上的同一栏里显示不同的数据,但是又用的是同一张表
2006-08-22 16:48
快速回复:求助:数据库问题
数据加载中...
 
   



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

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