Nice thought Bob. You're right, I was quoting it, but unquoting it
gives the same error as leaving it out (SQL error: [unixODBC][Driver
Manager]Data source name not found...)
Oh well, will have to keep looking.
Cheers

On Sep 21, 12:00 am, Bob Brown <[email protected]> wrote:
> Just a thought re your fourth parameter, it sounds like it's not being read
> properly (as per it complaining that a string was found where a long was
> expected). Presumably it's a built in constant that either you're specifying
> as a literal string (easy mistake) or PHP doesn't recognise it and is
> casting it to a string for you.
>
> Check the spelling of the constant and/or drop the quotes from around it.
>
> Cheers,
>
> - Bob -
>
> On 20/09/2011, at 10:10 PM, Dave Turton <[email protected]> wrote:
>
> and if I use one of the 3 cursor types constants specified on
> php.netfunction page, I get the error - odbc_connect() expects
> parameter 4 to be
> long, string ...

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to