RE: [PHP] Session migration problem...

From: Date: Tue, 21 Oct 2003 02:31:49 +0000
Subject: RE: [PHP] Session migration problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166872@lists.php.net to get a copy of this message
> -----Original Message----- > From: Chris Shiflett [mailto:shiflett@php.net] > Sent: Monday, October 20, 2003 9:56 PM > To: Jake McHenry; php-general@lists.php.net > Subject: Re: [PHP] Session migration problem... > > > --- Jake McHenry <linux@nittanytravel.com> wrote: > > $result = mysql_query("SELECT * FROM users WHERE > > uname = > > '".$_POST['username']."'"); > > Don't put uname in single quotes. Aside from that, don't > forget that you can interpolate variables with curly braces. > Depending on your personal preference, you might find it > easier to read: > > "select * from users where uname = '{$_POST['username']}'" > > Hope that helps. > > Chris > > ===== > My Blog > http://shiflett.org/ > HTTP Developer's Handbook > http://httphandbook.org/ > RAMP Training Courses > http://www.nyphp.org/ramp > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I took the single quotes off of the field name, uname, but still getting the same error at the same line in the file... Any other suggestions? Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com

« previous php.general (#166872) next »