Re: Using info from a MySQL Query

From: Date: Wed, 06 Nov 2002 02:34:21 +0000
Subject: Re: Using info from a MySQL Query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122905@lists.php.net to get a copy of this message
Put your variables into {} like this '{$_POST['email'] }', $sql ="SELECT company, name, email FROM $table_name WHERE email = '{$_POST[email]}' AND password = password('{$_POST[password]}')"; ----- Original Message ----- From: "Ben C." <benc@cox.net> To: <php-general@lists.php.net> Sent: Wednesday, November 06, 2002 12:09 PM Subject: [PHP] Using info from a MySQL Query > I am using the following query: > > $sql ="SELECT company, name, email FROM $table_name > WHERE email = '$_POST[email]' AND password = password('$_POST[password]')"; > > Then I am echoing the $email on my form (it works because the person has posted their e-mail name when logging in). How can I echo the company and email on to my form as well. Please help. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#122905) next »