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] Subject: Re: [PHP] why doesnt this work???

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

2002-03-20 Thread Stampe, Lars
Please try this :) for ($i = 0; $i mssql_num_rows( $result ); $i++) { $line = mssql_fetch_row($result); if (($line[0] == $bruker) ($line[1] == $passord)) { echo hei $line[0]; } else { echo FEIL; } Lars

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

2002-03-20 Thread Stampe, Lars
Hi, Let me explain what is wrong with this line: if( $line[1]='$bruker' and $line[2]='$passord') when you use = instead of == it will always be true because you set $line[1] to $bruker, you have to compare them by using ==. Also looking at your sql query $line[0] would contain your username

RE: [PHP] Making a simple borderless pop up window with a Close button

2002-03-21 Thread Stampe, Lars
Hi, I have a script that might do what you want, I don't have time to explain but have a look at: http://www.epson.co.uk/product/printers/inkjet/styc80/flash/index.html and launch the site! ** SCRIPT /* CHROMELESS WINDOWS v.31.0 [ 4.50K ] (c) Gabriel

RE: [PHP] Object reference

2002-03-21 Thread Stampe, Lars
Hi, Use to reference one variable to another! $b = $a; Lars -Original Message- From: Lucijan [mailto:[EMAIL PROTECTED]] Sent: 21 March 2002 10:20 To: [EMAIL PROTECTED] Subject: [PHP] Object reference I can't understand why this works like it does. class MyObj { var $Name;

RE: [PHP] Custom 404

2002-04-02 Thread Stampe, Lars
http://rob-mike.php4hosting.com/mike/htaccess/ -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: 02 April 2002 13:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] Custom 404 .htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To:

RE: [PHP] using .htaccess to repoint

2002-04-10 Thread Stampe, Lars
Hi, This might be helpful http://rob-mike.php4hosting.com/mike/htaccess/ Lars -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 12:29 To: [EMAIL PROTECTED] Subject: [PHP] using .htaccess to repoint Hi, my isp uses wildcard dns to point to the root.

RE: [PHP] Re: $PHP_SELF question

2002-04-18 Thread Stampe, Lars
Try and create a new php file with the following code and read the result: ?php phpinfo(); ? thats it, a lot of useful info there! Regards Lars -Original Message- From: Joel Colombo [mailto:[EMAIL PROTECTED]] Sent: 18 April 2002 16:03 To: [EMAIL PROTECTED] Subject: [PHP] Re:

RE: [PHP] PHP Books

2001-05-08 Thread Stampe, Lars
http://www.wrox.com/ I really found Beginning PHP from Wrox very helpful, had a hard time stopping reading it! Great useful real life examples! Lars -Original Message- From: Daniel [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 00:59 To: [EMAIL PROTECTED] Subject: [PHP] PHP Books Hi,

[PHP] textarea -- what happens to my new lines

2001-05-03 Thread Stampe, Lars
I am making a e-card page, and I am having a problem with with my message box which is a textarea when I am previewing or saving/recalling the text all the newline characters are gone. Any good ideas! Thanks Lars Stampe

RE: [PHP] textarea -- what happens to my new lines

2001-05-03 Thread Stampe, Lars
:: ?php echo $textfield; ? When I put in : 1 2 3 4 I get: 1 2 3 4 how do I fix this ( want it to appear like it was typed!)? Regards Lars Stampe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 12:44 To: Stampe, Lars; [EMAIL PROTECTED] Subject