知道是用odbc_fetch_into($query,&$array)但
$query=odbc_do($connect,"select * from table order by id desc");
odbc_fetch_into($query,&$array);
用$array[title]时报错
Use of undefined constant title - assumed 'title' 
Undefined index: title 
还有怎么依次取出字段名的值

解决方案 »

  1.   

    知道是用odbc_fetch_into($query,&$array)但  
    $query=odbc_do($connect,  "select  *  from  table  order  by  id  desc  ");  
    odbc_fetch_into($query,&$array);  
    $title=$array[title];
    echo $title;时报错  
    Use  of  undefined  constant  title  -  assumed  'title'    
    Undefined  index:  title    
    odbc_fetch_into()是把查询值都赋给数组,怎么依次取出数组(字段名)的值