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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux