RE: [PHP] Select and $_POST
| From: | Matt Babineau | Date: | Wed, 09 Nov 2005 23:59:28 +0000 |
| Subject: | RE: [PHP] Select and $_POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225477@lists.php.net to get a copy of this message | ||
$query = "SELECT * FROM login WHERE username =
'".$_POST['username']."' AND
pass = '". $_POST['pass']."'";
> What is the correct syntax for
>
> $query = "SELECT * FROM login where
> username='$_POST['username']' AND pass
> ='$_POST['pass']'";
>
>
> Thought this would work.
>
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>