Re: php5/oci8/oracle 11g1 insert doesn't work

From: Date: Sun, 23 Nov 2008 23:51:10 +0000
Subject: Re: php5/oci8/oracle 11g1 insert doesn't work
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-45700@lists.php.net to get a copy of this message
PHP Parse error: syntax error, unexpected T_LNUMBER in try_logid.php on line 21 Errors parsing try_logid.php
You have a parse error. PHP cannot work out what to do in the file. It's a fatal error. It's because on line 21 (like the message says) you are using single quotes for in & out of the sql statement (not what the message says). <?php $string = 'in and 'out'; will give the same error. Inside quotes, you have to escape quotes of the same type. $string = 'in and \'out'; or $string = "in and \"out"; or $string = "in and 'out"; -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45700) next »