• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tydl
V2EX  ›  程序员

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

  •  
  •   tydl · Nov 20, 2018 · 1741 views
    This topic created in 2877 days ago, the information mentioned may be changed or developed.

    $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 replies  •  2018-11-20 16:51:44 +08:00
    way2create
        1
    way2create  
       Nov 20, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:18 · PVG 08:18 · LAX 17:18 · JFK 20:18
    ♥ Do have faith in what you're doing.