Re: help with login script

From: Date: Fri, 23 May 2003 09:58:49 +0000
Subject: Re: help with login script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148751@lists.php.net to get a copy of this message
Hi, I think your problem comes from the PHP script and not from SQL I looked at your code (the link) //snippet sql = "SELECT password FROM auth_users WHERE username = '$_POST[username]'"; $query = mysql_query( $sql ) || die( "query failed" ); //snippet $_POST[username] is not a good idea; you should use $_POST['username'], otherwise PHP looks for a constant named username and I suppose you don't have it. Also, make sure the method you transmit variables from the FORM is POST and not GET Cheers, Catalin "Karl James" <karl.james@verizon.net> wrote in message news:000301c32048$c3cf9040$6d612f04@thematrix2003... > This is my error > ------------------- > SELECT password FROM auth_users WHERE username = 'kjames1973' > > > =================================================================== > > this is my code > ------------------- > http://nopaste.php-q.net/16068 > > > ================================================================== > > Karl James > karl.james@verizon.net > ultimatefootballleague.com/index.php > > >

« previous php.general (#148751) next »