Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with function odbc_fetch_array.

Status
Not open for further replies.

D4vis

Programmer
May 28, 2004
1
IT
Hi,
I have a problem with this code:

Code:
     $conn = connect();
     $query = 'select * from Dipendente where Ruolo=\'Docente\'';
     $ris = odbc_exec($conn, $query);
      while ($dati = odbc_fetch_array($ris))
      {
           echo "check";
           echo $dati['Id'];
      }
The query and the while are ok but echo $dati['Id'] don't write nothing.
P.S. The fild "Id" is correct.

Thanks in advance;
D4vis.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top