本帖最后由 z4180757 于 2010-01-08 00:30:38 编辑

解决方案 »

  1.   

    你怎么一直要把PHP转ASP?
    看一下书自己转
      

  2.   

    呵呵  不懂asp
     爱莫能助
      

  3.   

    <!--#include file="../include/function.php"-->
    <% 
    lmfrom = Request.QueryString("from")
    fromdt = Request.QueryString("fromdt")
    todt = Request.QueryString("todt")
    if not empty(fromdt) and not empty($todt) thensql = "select * from web_user where lmfrom='"&lmfrom&"' and regtime>='"&fromdt&"' and regtime <='"&todt&"' and lmzt=2 order by id asc"else sql = "select * from web_user where lmfrom='"&lmfrom&"' and lmzt=2 order by id asc"; end if
    Set rs = Server.CreateObject("adodb.recordset")
    rs.open sql,conn,1,1
    while not rs.eof
    Response.write "会员ID:"&rs("lmuid")&",注册时间:"&rs("regtime")&",来访IP:"&rs("lmip")&",状态:成功<br>"&vbcrlf 
    rs.movenext
    wend
    rs.close
    %> 
      

  4.   

    没有测试
    <!--#include file="conn.asp"-->
    <%
    lmfrom = request("from")
    fromdt = request("fromdt")
    todt = request("todt") 
    if fromdt<>"" and  todt<>"" then
    sql = "select * from web_user where lmfrom='$lmfrom' and regtime>='$fromdt' and regtime <='$todt' and lmzt=2 order by id asc" 
    else
    sql = "select * from web_user where lmfrom='$lmfrom' and lmzt=2 order by id asc"
    end if
    set rs=server.createObject("adodb.recordset")
    rs.open cmd,conn,1,1do while not rs.eof
    response.write  "'会员ID:"&rs("lmuid")
    loop
    %>