Re: Defined constant in mysql_query - Question.

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

 



On Wednesday 13 April 2005 04:37, Labunski wrote:
> Hi,
> Can I use Constant in mysql query like this:
>
>
> define("LANG", "eng");
> mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY
> subjectLANG");

You can use:

 mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY 
subject".LANG);
>
>
> Thanks a LOT,
> Lab.

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436

Attachment: pgpRk9Dtg0tCm.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux