找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 62|回复: 2

一个小问题!

[复制链接]
发表于 2010-1-10 08:17:39 | 显示全部楼层 |阅读模式 IP:江苏扬州
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="connection/conn.asp"-->
<%
dim rs2,sql2
set rs2=server.CreateObject("adodb.recordset")
sql2=" select * from shangjia_info"
rs2.open sql2,conn ,1,1
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {font-size: small}
.STYLE9 {
    font-size: small;
    color: #010000;
    font-family: "宋体";
}
.STYLE12 {color: #999999}
.STYLE13 {
    color: #0099FF;
    font-weight: bold;
    font-size: small;
}

-->
</style>
</head>

<body>
<table width="1024" height="512" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="1024" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="header" style="border-top:solid 3px #FFFFFF">
          <tr>
            <td class="tabs"><table border="0" cellspacing="0" cellpadding="0" align="center">
                <tr id="twotabtop">
                  <td width="140" valign="top"><div align="left"><img src="image_metro/logo.jpg" width="140" height="80" /></div></td>
                  <td width="20" class="lefton">&nbsp;</td>
                  <td width="836" height="35" valign="top" class="lefton"><table width="860" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="860" height="50" valign="top">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="30"><table width="854" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="594"><table width="615" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><table width="459" border="0" align="left" cellpadding="0" cellspacing="2">
                                        <form  method="post" name="userlogin" id="userlogin">
                                          <input type="hidden" name="formhash" value="b639ce54" />
                                          <input type="hidden" name="referer" value="index.php" />
                                          <tr>
                                            <td width="460" class="title_link_b">&nbsp;<span class="STYLE1"> 用户名:
                                              <input type="text" name="username" class="STYLE1"
    onblur="this.style.background='#FFF';" onfocus="this.style.background='#f4f4f4';" size="11" maxlength="20" width="50" height="13"/>
                                              密码:</span>
                                                <input type="password" name="password" class="inputbox" onblur="this.style.background='#FFF';"
          onfocus="this.style.background='#f4f4f4';" size="11" value="" maxlength="16" width="50" height="13" />
                                                <span class="STYLE1">
                                                <input name="loginsubmit" type="submit" class="STYLE1" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid"  value="登录" />
                                                <input name="button" type="button" class="STYLE1" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid" value="注册" />                                            </td>
                                          </tr>
                                        </form>
                                    </table></td>
                                    <td width="150" class="STYLE1">区域搜索:
                                      <select name="select">
                                          <option>龙华区</option>
                                      </select></td>
                                  </tr>
                                </table>
                                  <label></label></td>
                              <td width="260"><div align="right"><img src="image_metro/column.jpg" width="250" height="30" /></div></td>
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td background="image_metro/sm_1.gif" class="secondary"><table border="0" cellpadding="0" cellspacing="0" align="center">
                <tr id="twotabsubnav" height="34">
                  <td class="navspacer" valign="top"><table height="28" width="760" border="0" align="center" cellpadding="0" cellspacing="0" >
                      <tr>
                        <td width="100%" height="50"  align="center" background="image_metro/sm_1.gif" bgcolor="#FFFFFF"><span class="STYLE9">汽车美容  | 摄影 | 妇婴  | 时尚 |培训 | 家居 | 家电 | 家政 | 物流 |</span></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                <form  method="get" name="searchBrick" id="searchBrick" style="margin:2px 0 0 0;">
                  <input type="hidden" name="ix" value="sunray"/>
                  <input type="hidden" name="pageletid" value="headsearch"/>
                  <table align="center" id="TopSearch" border="0" cellspacing="0" cellpadding="0">
                    <tr id="twotabsearch">
                      <td width="80" align="center" class="SearchTitle"><div align="center"><span class="STYLE1">商品搜索</span>&nbsp;</div></td>
                      <td width="100"><div id="topSearchCategory">
                          <select name="searchType" class="SearchSel" onchange="changeSearchKind()" style="width:100px">
                            <option value="" selected="selected">所有类别</option>
                            <option value="1">汽车美容</option>
                            <option value="2">摄影</option>
                            <option value="3">妇婴</option>
                            <option value="4">时尚</option>
                            <option value="5">培训</option>
                            <option value="6">家居</option>
                            <option value="7">家电</option>
                            <option value="8">家政</option>
                            <option value="9">物流</option>
                          </select>
                      </div></td>
                      <td width="200" align="center"><label>
                        <input type="text" name="textfield" />
                      </label></td>
                      <td width="5">&nbsp;</td>
                      <td align="right"><input type="image" src="http://images.amazon.cn/a/az-go-orange-trans.gif" alt="查找" name="Go" border="0" /></td>
                      <td><div id="searchKindArea" class="SearchKeyword" style="margin:0;"></div>
                          <input type="hidden" name="bestSaleNum" value="0" />
                          <script language="JavaScript" type="text/javascript">changeSearchKind();</script></td>
                    </tr>
                  </table>
                  <script language="JavaScript" type="text/javascript">
    window.ac.install(document.searchBrick, document.searchBrick.keywords, "/FusionPrefixSearchApp/prefixsearch_proxy.jsp?");
          </script>
                </form>
              <table border="0" cellpadding="0" cellspacing="0" align="center">
                  <tr id="twotabsubnav" height="10">
                    <td class="navspacer"></td>
                  </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="40" class="STYLE9 STYLE12">位置:商家列表</td>
      </tr>
      <tr>
        <td><table width="1024" height="112" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="720" valign="top"><table width="720" border="0" cellpadding="0" cellspacing="1" bgcolor="#99CCCC">
              <tr>
                <td bgcolor="#FFFFFF"><table width="720" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="28" background="image_metro/sm_1_1.jpg" bgcolor="#F0F6F7"><span class="STYLE13">搜索结果:</span></td>
                  </tr>
                  <tr>






                  </tr>
                </table></td>
              </tr>
            </table>
              <form id="form1" name="form1" method="post" action="" runat="server">
              <%
              do while not rs2.eof
              
              %>
              <table width="442" height="100" border="0" align="leaf">
  <tr>  
   
     <td width="9" rowspan="4" ><img src="/photo/metro/<%=rs2("pic")%>"></td>   
  <td height="25" colspan="2"  align="left" style="font-size:14px; font-family:"宋体";"><%=rs2("name")%></td>
    </tr>
  <tr>
    <td width="73"  align="center"><span  style="font-size:12px">经营范围:</span></td>
    <td width="207" height="25"   style="font-size:12px"><%=rs2("fanwei")%></td>
  </tr>
  <tr>
    <td width="73" align="center" ><span  style="font-size:12px">联系电话:</span></td>
    <td height="25"  style="font-size:12px" ><%=rs2("tel")%></td>
  </tr>
  <tr>
    <td width="73"  align="center"><span  style="font-size:12px">详细地址:</span></td>
    <td  height="25" style="font-size:12px"><%=rs2("dizhi")%></td>
  </tr>
</table>
<%
rs2.movenext
loop
%>
              
              </form>
              </td>
            <td width="300" valign="top">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>



<img width="135" height="100" src="/photo/metro/<%=rs2("pic")%>">

数据库里面的pic列 字段类型我用了 varchar
数据库里面就存的是图片的文件名




Script error detected at line 51.
Source line: Response.Write rs2("shangjia_tupian")
Description: 类型不匹配: 'Response.Write'


如果把图片那行的代码删除就可以正常显示。。。。
发表于 2010-1-31 22:05:04 | 显示全部楼层 IP:日本
情缘采集器站长必备的维护软件,全自动采集,发帖,顶贴,宣传
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 07:15 , Processed in 0.285524 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表