Re: [PHP-DB] php5/oci8/oracle 11g1 insert doesn't work
[email protected] (Chris)
| Newsgroups | php.db |
|---|---|
| Message-ID | <[email protected]> |
> 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/