Re: Segmentation fault (11) with PHP ODBC
| From: | Sebastian Haag | Date: | Fri, 22 Aug 2003 11:44:05 +0000 |
| Subject: | Re: Segmentation fault (11) with PHP ODBC | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30044@lists.php.net to get a copy of this message | ||
Tommy Apel said:
> Hi I'm having a little problem ondestanding whats going on....
> The problem is that some and only some of my odbc_exec()'s functions while
> others don't and cause an segmentation fault in apache1/2
> My configuration is SuSE 8.1 with Apache2.0.44, PHP4.3.1 --with-iODBC
> after
> that i've added FreeTDS 0.61 as ODBC-driver for MS-SQL2K, now this works
> fine some of the way but not always
>
> Exampel:
> odbc_exec($conn,"select id,name from $user_db.dbo.users"); // Works fine
> no
> problem
>
> odbc_exec($conn,"select * from $user_db.dbo.users where (id = '$idz')");
^ ^
Are you sure you need those parenthesis???
> //
> Does not work and causes seg fault (11)
>
>
> Can anyone maby help me explain this error
>
> Regards
> Tommy
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Once a problem is defined - it is half way solved. (Henry Ford)