RE: [PHP-DB] Select string.

From: Date: Thu, 11 Jul 2002 00:16:06 +0000
Subject: RE: [PHP-DB] Select string.
Groups: php.db 
Request: Send a blank email to php-db+get-20486@lists.php.net to get a copy of this message
$login = mysql_query("SELECT * FROM Users WHERE Username ='$User_Name'"); > -----Original Message----- > From: Shiloh Madsen [mailto:shiloh_madsen@nsc-support.com] > Sent: Wednesday, July 10, 2002 4:48 PM > To: php-db > Subject: [PHP-DB] Select string. > > > Yet another thing i need some quick help with. What is the > proper way to > generate a select string in php. I know if youre trying to select a > value from a column you need to enclose it in double quotes if youre > doing it directly in sql. in this case the value in question is being > passed as a variable from a previous page. i have the current > line for > selection in my page, but i dont think it is correct. any help? > > $login = mysql_query("SELECT * FROM Users WHERE Username =". > $User_Name) > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.db (#20486) next »