Re: Submitting data to MySQL database using HTML/PHP form

From: Date: Tue, 22 Feb 2011 03:29:19 +0000
Subject: Re: Submitting data to MySQL database using HTML/PHP form
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-47693@lists.php.net to get a copy of this message
Thanks! Even with the typo, the issue was resolved with your helpful comments! Thanks also for the pointer on using mysql_real_escape to 'sanitize' the user input, it's definitely become a part of my coding. On Mon, Feb 21, 2011 at 8:22 AM, Daniel Brown <danbrown@php.net> wrote: > On Sun, Feb 20, 2011 at 16:43, Donovan Brooke <lists@euca.us> wrote: > >> > >> $insert = "INSERT INTO user_info(login,password) > >> > >> > > VALUES('".mysql_real_escape_string($login)."',"'.mysql_real_escape_string($password)."')"; > > > > > > Look at that one more time Dan. ;-) > > Yeah, well, that's why one should never copy and paste, and why I > shouldn't reply to a thread on quotes from my phone. Go figure. ;-P > > -- > </Daniel P. Brown> > Network Infrastructure Manager > Documentation, Webmaster Teams > http://www.php.net/ > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#47693) next »