trying different values of cursor type in the connect function may help:

odbc_connect (string dsn, string user, string password [, int cursor_type])

permitted values are:
        SQL_CUR_USE_IF_NEEDED
        SQL_CUR_USE_ODBC
        SQL_CUR_USE_DRIVER
        SQL_CUR_DEFAULT

however, i was not able to get the odbc_num_rows() function to work
properly, it will not give correct value until i fetch all the rows using
odbc_fetch_row() function

i am using odbc to access Access database on win98 system.

can someone give me a clue on this?

regds,

regds,
-----Original Message-----
From: Matt Kynaston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 16:25
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] odbc_fetch_array function


Check out the user notes at:
http://www.php.net/manual/en/function.odbc-fetch-array.php

One includes a workaround if you're using a version where it doesn't
exist.

Matt

> -----Original Message-----
> From: SEGUERRA FRANCIS TED ARANAS
> [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 05:31
> To: Pascal S.
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] odbc_fetch_array function
>
>
> what database are you using? that problem is a database
> connection from
> your php to your db. i have been using the same as your for a
> couple of
> months but i have no problem since my db is placed on my cygwin.its a
> postgresql db.
>
> On Thu, 3 Oct 2002, Pascal S. wrote:
>
> > I have version 4.2.3 of PHP installed on a Windows server.
> >
> > I am new to PHP. I did find the function
> > array odbc_fetch_array ( resource result [, int rownumber])
> > in the documentation, but it doesn't seem implemented in
> the version that I
> > use.
> >
> > Do you know what I did wrong?
> >
> > Thanks,
> >
> > Pascal
> >
> >
> >
> >
>
> --
> ov3rr|d3r
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to