You are here: Re: [PHP] Select and $_POST « PHP « IT news, forums, messages
Re: [PHP] Select and $_POST

Posted by Chris Shiflett on 11/07/65 11:31

Ross wrote:
> $query = "SELECT * FROM login where username='$_POST['username']' AND
> pass ='$_POST['pass']'";

You have to use curly braces in order to interpolate an array:

$string = "...{$array['foo']} ...";

By the way, my favorite username is this:

chris' --

That's what all my friends call me. :-)

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация