易截截图软件、单文件、免安装、纯绿色、仅160KB

一段asp转php

<%if request.QueryString("start") <>"" then%>
<%if cint(start)>0 then%>
<a href="search.asp?q= <%=q%>&start= <%if request.QueryString("start") <>"" and cint(start)>0 then%> <%=start-cint(num)%> <%end if%>&num= <%if num <>"" then%> <%=num%> <%else%>20 <%end if%>" target="_top">上一页 </a>
<%end if%>
<%end if%>
&nbsp; <a href="search.asp?q= <%=q%>&start= <%if request.QueryString("start") <>"" then%> <%=start+cint(num)%> <%else%> <%=start%> <%end if%>&num= <%if num <>"" then%> <%=num%> <%else%>20 <%end if%>" target="_top">下一页 </a>
</center>
PHP code:

<?php
$start = $_GET["start"];
if($start != ""){
if((int)$start>0){
?>
<a href="search.asp?q=<?php echo $q?>&start=<?php echo (int)$start-(int)$num?>&num=<?php if($num !="") echo $num; else echo 20;?>" target="_top">上一页 </a>
<?php
}
}
?>
&nbsp;<a href="search.asp?q=<?php echo $q?>&st


相关问答:

ASP判断的问题,郁闷了!判断不出来!

HTML code:

dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="& ......

asp 数组问题

初学asp 知道可以定义多维数组
Dim a(5,3,2)


但是看到另外一种写法
Dim thisarray(1 to 10,-4 to 5, 5 to 11)
但是编译的时候出错
错误描述:缺少 ')'
如果解决??
VBScript和V ......

ASP 用类操作?

进来维护了用类编写的ASP网站,开始了解了 一点类的操作。
以前做网站都是在《% %》写代码的?

看看 CMS好像都是用类写的,自己也看了代码 好像比较难, 看得懂都不知道要到什么时候才明白。
头晕啊! ......

求一个sql 语句(asp)

id lbname topid ceng
1 产品1 0 1
16 产品2 0 1
17 产品3 0 1
18 产品4 0 1
19 产品5 0 1
20 产品6 0 1
21 产品7 0 1
22 产品8 0 1
23 产品9 0 1
24 产品10 0 1
25 产品11 0 1
......

asp:radiobtton怎么用,有代码.

下面是一段页面代码,一个DATALIST里面有RADIOBUTTON,这个控件应该怎么用啊,我要的效果是,从DB里查出来的数据显示在DATALIST中,最前面一列是RADIOBUTTON,可以选中其中一行.现在的效果是,可以同时选中多行并且得不到选 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号