problem description
how does the PHP ODBC connection SQL server convert the result set to an array?
related codes
/ / Please paste the code text below (do not replace the code with pictures)
$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)) {
}
what result do you expect?
if you want to use the array $worklist to receive the result set after the query, how to write it in while?