Re: Parse error

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: アムス <ams(at)asiams(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Parse error
Date: 2002-11-16 16:34:28
Message-ID: Pine.LNX.4.33.0211160933200.6149-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 16 Nov 2002, [iso-2022-jp] $B%"%`%9(B wrote:

> When I run a php program connected to postgresql, I have the following
> error:
>
> "Parse error: parse error, unexpected T_STRING "
>
> The actual code for this part that caused the error is like this:
>
> $sql = "SELECT * FROM appconf ORDER BY sort_order"; <=== This line causes
> the error.
> $result = @pg_exec($sql);
>
> Do you know what is the unexpected T_STRING error is?

Most of the time this is an untermintaed string in a prevoius line. If
you have a color coded editor, these things are easier to spot. If not,
you can turn on php color highlighting in your webserver for .phps files
and then just

ln -s file.php file.phps

and look at the file.phps and see the color coding.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2002-11-16 18:58:34 Re: More than 16 args to postgres
Previous Message アムス 2002-11-16 13:09:25 Parse error