V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tydl
V2EX  ›  程序员

PHP ODBC 连接 SQL server 如何将结果集转成数组

  •  
  •   tydl · 2018-11-20 16:19:00 +08:00 · 1205 次点击
    这是一个创建于 2035 天前的主题,其中的信息可能已经有所发展或是发生改变。

    $query="SELECT * from tblWeight where LISTID='$listid' and DateDiff(dd,LISTTIME,getdate())<=2"; $result=odbc_exec($link,$query); $worklist = array(); while (odbc_fetch_row($result)) {

    	}
    

    想把结果集转成$worklist 的数组~

    1 条回复    2018-11-20 16:51:44 +08:00
    way2create
        1
    way2create  
       2018-11-20 16:51:44 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2627 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 14:47 · PVG 22:47 · LAX 07:47 · JFK 10:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.