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

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

  •  
  •   tydl · Nov 20, 2018 · 1599 views
    This topic created in 2768 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   ·   Solana   ·   2426 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:45 · PVG 23:45 · LAX 08:45 · JFK 11:45
    ♥ Do have faith in what you're doing.