[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indenting SQL in php_mode
|
From: |
Lennart Borgman |
|
Subject: |
Re: indenting SQL in php_mode |
|
Date: |
Mon, 8 Dec 2008 17:27:36 +0100 |
On Mon, Dec 8, 2008 at 3:01 PM, Frank Thieme <address@hidden> wrote:
> On Mo 08 Dez 2008 14:32, "Lennart Borgman" <address@hidden> writes:
>
>> Could you please show me some examples of how sql in php look? (Delimiters
>> etc.)
>
> I don't know whether there is a standard, but I do it like this:
>
> $query = "SELECT field1,
> field2,
> field3
> FROM table1 t1,
> table2 t2
> WHERE t1.foo = t2.bar
> AND field1 = 'foobar'";
Thanks, Frank, but I thoiught you meant a file with mixed php and sql
code, or? How does the delimiters from the php code look?