Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > E_PARSE error ?
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 15719 of 17437
Post > Topic >>

E_PARSE error ?

by af.gourmet@[EMAIL PROTECTED] (PJ) Jun 3, 2008 at 12:14 PM

I'm using php5, postgresql 8.3, apache2.2.8, FreeBSD 7.0
I don't understand the message:

*Parse error*: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, 
expecting T_STRING or T_VARIABLE or T_NUM_STRING

the guilty line is:

list($page_id)=sqlget("
        select page_id from pages where name='$_SERVER['SCRIPT_NAME']'");

the variable value is "/index.php"

however, at the time of execution this has been cleared

So, the question is - What is the unexpected T_ENCAPSED_AND_WHITESPACE?
and What is actually expected? Are we talking about the content of 
$_SERVER['SCRIPT_NAME'] or what is the syntax error? This is within php 
code; could it be that the parser is reading this as something else, 
like HTML?
I'm lost :((

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 3 Posts in Topic:
E_PARSE error ?
af.gourmet@[EMAIL PROTECT  2008-06-03 12:14:43 
Re: E_PARSE error ?
ludwig@[EMAIL PROTECTED]   2008-06-03 21:42:30 
Re: E_PARSE error ?
scott.marlowe@[EMAIL PROT  2008-06-09 17:00:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:34:24 CST 2008.