Re: Post variables and mysql queries

From: Date: Mon, 27 Oct 2003 16:25:25 +0000
Subject: Re: Post variables and mysql queries
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167741@lists.php.net to get a copy of this message
--- Luis Lebron <llebron@sigmatech.com> wrote: > $query="Select * from users where userid='$_POST['userid']'"; Use curly braces: $query = "select * from users where userid = '{$_POST['userid']}'"; Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#167741) next »