SQL="Select title from table1"
Set rs=Conn.Execute(SQL)
i=0
Dim title()
Do While Not rs.eof
    title(i)=rs("title")
   i=i+1
    rs.movenext
Loop

解决方案 »

  1.   

    你的意思时说把时间取出后把该时间分割成年、月、日存放在数组中吧?
    $sql = "select date from tbl_name";
    $result = mysql_query($sql);
    $row = mysql_fetch_array($result);
    $date = explode("-",$row[date])
      

  2.   

    我的时间date是以20030406这种格式存放在表里的。变量$my_year是2003
    我想用if(date=$my_yaer)成为一个条件
    我这样写的但是不对if(substring(date,1,4)==$my_year)
    该怎么写啊!!!!