MSSQL_FETCH_OBJECT locks!

wxdqz

New Member
Hello guys,

I'm trying to use mssql_fetch_object in the following code:

01: class Usuario {
02:
03: var $field_a;
04: var $field_b;
05: var $field_c;
06:
07: function get($chave) {
08: $link = mssql_connect(....); // the connection is ok
09: $query = "select * from medicos where login = '".$chave."'";
10: $select = mssql_query($query,$link); // the select also is ok
11: $this = mssql_fetch_object($select);
12: }
13:
14:}

Well, when trying to run line 11, the script locks and i can never get an answer from the http server. If I comment this line, it runs, but returns nothing (of course).

I'm running IIS 4 with php4.0.3pl1 as CGI, on NT 4 (SP6a), with MSSQL Server 7 (SP2).

Any ideas?

Ricardo
 
Back
Top