Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)

From: Date: Thu, 29 Apr 2004 13:38:25 +0000
Subject: Re: Single quotes inside double quoted string (Was: Re: [PHP] Re: Problem with a class... any help will be appreciated.)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-184942@lists.php.net to get a copy of this message
Actually you are right the problem is not in the proccess of writing to the database, the problem is that after writing to the database it wont "jump" to the next function it wont go to login() or any other function for this matter. vamp "John W. Holmes" <holmes072000@charter.net> escribió en el mensaje news:004101c42ddb$685fc0d0$a629089b@GORDWKTB1HXA002... > From: "Marius Dascalu" <mariusdascalu2003@yahoo.com> > > > I think the error is in line: > > > > $query_revisa = $this->dbQuery("SELECT User, Password, > > Nivel FROM Admon WHERE User = '$user'"); > > > > PHP doesn't expand variables in single quoted > > expressions. Try this line instead: > > > > $query_revisa = $this->dbQuery("SELECT User, Password, > > Nivel FROM Admon WHERE User = $user"); > > Take a look at that first line again. The string is delimited by DOUBLE > QUOTES. The single quotes are inside of the string. PHP will resolve the > variable because the string has double quotes, so this isn't the problem. > Sorry I can't help the OP as to what the actual problem is, but I wanted to > point out this misconception. > > ---John Holmes...

« previous php.general (#184942) next »