Re: 2nd Pair of eyes
| From: | Simon J Welsh | Date: | Tue, 18 Jan 2011 18:05:52 +0000 |
| Subject: | Re: 2nd Pair of eyes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310843@lists.php.net to get a copy of this message | ||
On 19/01/2011, at 6:49 AM, Donovan Brooke wrote:
> Hello,
>
> I warned the list that I may have questions! ;-)
>
> ...building a simple cookie-based log-in system, and have
> narrowed an error to this below: (sorry for email line breaks, if any)
>
> ---Start---
> $query = "SELECT u_id FROM cms_users WHERE u_name = $_post['f_user'] AND
> u_pass = $_post['f_pass']";
Array indices either need to be accessed without quotes for the key, or by enclosing the variable in
curly braces.
---
Simon Welsh
Admin of http://simon.geek.nz/
Who said Microsoft never created a bug-free program? The blue screen never, ever crashes!
http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e