Re: [PHP] why doesnt this work???

2002-03-20 Thread Tom Rogers
Hi Try this: $query = "select * from medlemmer where bruker = '$bruker' and passord ='$passord'"; $result = mssql_query( $query ); while($line = mssql_fetch_row($result)): if( $line["bruker"] == $bruker && $line["password"] == $passord) echo "hei $bruker."; else echo "FEIL"; end

Re: [PHP] why doesnt this work???

2002-03-20 Thread Joel Boonstra
Hello, I read a ton of replies to this already, and there was a lot of good advice. However, it should be worth noting (and I don't think anyone did already) that you have a misspelling in this code: > $password = ""; > // . . . > $query = "select * from medlemmer where bruker = '$bruk

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
IL"; Regards Lars Stampe -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:41 To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works best is the one i star

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
Collins II > Webmaster > New Orleans Regional Transit Authority > Phone : (504) 248-3826 > Email : [EMAIL PROTECTED] > > > -Original Message----- > From: chris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 8:33 AM > To: [EMAIL PROTECTED] > Subject: Re: [P

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
This works; I just tried it. -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
echo "FEIL"; } Lars Stampe -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:30 To: 'chris'; [EMAIL PROTECTED] Subject: RE: [PHP] why doesnt this work??? First: you need == not = to test equivalence. Second, use " not &

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
> Webmaster > New Orleans Regional Transit Authority > Phone : (504) 248-3826 > Email : [EMAIL PROTECTED] > > > -Original Message----- > From: chris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 8:33 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] w

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
-Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? it all works just fine exept that when the vars is wrong i get a blank page...wich means that the else echo doesnt work for some r

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
; Robert W. Collins II > Webmaster > New Orleans Regional Transit Authority > Phone : (504) 248-3826 > Email : [EMAIL PROTECTED] > > > -Original Message----- > From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 8:25 AM > T

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
MAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? nope... that did not do the trick... -Chris "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
: (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? You need two = signs for comparision not just one . Also I think you n

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
ilto:[EMAIL PROTECTED]] > > Sent: Wednesday, March 20, 2002 8:15 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] why doesnt this work??? > > > > > > this script receives vars "b" and "p" from a form. > > If "b" and "p

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Hi, I am not an expert, but try if( $line[0]='$bruker' and $line[1]='$passord') {echo "hei $bruker.";} else {echo "FEIL";} atb Lars -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:22 To: [EMAIL PROTECTED]

Re: [PHP] why doesnt this work???

2002-03-20 Thread R'twick Niceorgaw
> From: chris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 8:15 AM > To: [EMAIL PROTECTED] > Subject: [PHP] why doesnt this work??? > > > this script receives vars "b" and "p" from a form. > If "b" and "p" matches the

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
> else {echo "FEIL";} > > -Original Message- > From: chris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 8:15 AM > To: [EMAIL PROTECTED] > Subject: [PHP] why doesnt this work??? > > > this script receives vars "b" a

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
if( $line[1]='$bruker' and $line[2]='$passord') {echo "hei $bruker.";} else {echo "FEIL";} -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:15 AM To: [EMAIL PROTECTED] Subject: [PH

[PHP] why doesnt this work???

2002-03-20 Thread chris
this script receives vars "b" and "p" from a form. If "b" and "p" matches the echo on IF, then it works just fine. The problem is that if the vars dont match the ELSE ECHO does not apear... why not? -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p