Re: Defined constant in mysql_query - Question.

From: Date: Wed, 13 Apr 2005 06:47:52 +0000
Subject: Re: Defined constant in mysql_query - Question.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212987@lists.php.net to get a copy of this message
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: [application/pgp-signature]
« previous php.general (#212987) next »