Re: Current Member Check
| From: | Jason Wong | Date: | Sun, 19 Dec 2004 21:12:41 +0000 |
| Subject: | Re: Current Member Check | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204682@lists.php.net to get a copy of this message | ||
On Monday 20 December 2004 03:54, Chris Shiflett wrote:
> --- Brad Ciszewski <bradcis@charter.net> wrote:
> > Please help me figure out what I did wrong.
> >
> > *connects to database*
> >
> > $email = $_POST["email"];
> >
> > $checkEmail = mysql_query("SELECT *
> > FROM memberInformation
> > WHERE email = '$email'");
>
> Please read this:
>
> http://php.net/manual/security.database.sql-injection.php
After you've digested that, you should study the examples in manual > MySQL
functions to see how to connect, query, and obtain results from MySQL, and
how to check for errors.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
question = ( to ) ? be : ! be;
-- Wm. Shakespeare
*/