asp查询读出列出只显示今天的信息记录
asp查询读出列出只显示今天的信息记录
asp查询读出列出只显示今天的信息记录
<%=Year(rscao("gl_date"))&"-"&Right("0"&Month(rscao("gl_date")),2)&"-"&Right("0"&Day(rscao("gl_date")),2)&" "&Right("0"&Hour(rscao("gl_date")),2)&":"&Right("0"&Minute(rscao("gl_date")),2)&":"&Right("0"&Second(rscao("gl_date")),2)%>
第一种,普通的方式,可以显示为11.17元
后台的2是小数点后面2位的意思
<%=FormatNumber(Rs("xc"),2)%>
第二种,可以显示小于0或是等于0的货币,例:0.00元
后面那个-1就是专用门来显示货币小于1用的
<%=FormatNumber(Rs("xc"),2,-1)%>
<%response.Write(Conn.execute("select name from [productSort] where id="&html_id)(0))%>
可以用于输入产品分类,或是栏目分类等
'栏目
rs("class") = Conn.execute("select class from [class_kp] where id="&rf("lanmu"))(0)
rs("classid")=rf("lanmu")
'栏目
<% = Conn.Execute("select count(dlsid) from [member] where dlsid='"&newdlshyid&"'")(0) %> 人
会员人数:<% = Conn.Execute("select count(dlsid) from [member] where dlsid='"&newdlshyid&"'")(0) %>
1.单参数
功能:
把:www.44721.cn/movie.asp?id=123
伪静态为:www.44721.cn/movie.asp?123.html
代码如下:
ASP/Visual Basic代码
<%
id=request.QueryString("id")
If id="" Then
mssql数据库用: order by SubString([字段名],1,1) asc 数据库用:
order by mid([字段名],1,1) asc
asp循环出来的多条内容格式化别的表中的字段
css背景渐变
background:linear-gradient(to right,#389afc,#057af1);