Re: Session migration problem...
| From: | Curt Zirzow | Date: | Tue, 21 Oct 2003 03:54:13 +0000 |
| Subject: | Re: Session migration problem... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166884@lists.php.net to get a copy of this message | ||
* Thus wrote Jake McHenry (linux@nittanytravel.com):
> > -----Original Message-----
> > From: Chris Shiflett [mailto:shiflett@php.net]
> >
> > --- Jake McHenry <linux@nittanytravel.com> wrote:
> > > $result = mysql_query("SELECT * FROM
users
> > > WHERE uname =
> > > '".$_POST['username']."'");
> >
> > "select * from users where uname = '{$_POST['username']}'"
>
> Is there any advantage to the curly brackets over the '".."'?
50% readability. 50% personal prefernce.
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/