Re: [PHP] array_diff usage

2001-04-02 Thread Martin Skjöldebrand
Stig Venaas wrote: So the arrays contain one string each? array_diff() won't work then. Sorry - my fault. I'm getting the values from a database - not manually added. Try this: $a = array(1, 2, 3, 4, 5); $b = array(1, 2); $test = array_diff($a, $b); $lines = count($test); echo $lines;

Re: [PHP] Cookie problem

2001-03-27 Thread Martin Skjöldebrand
Thanks everyone for all the responses. I think I'll look into sessions in the future. Meanwhile I'll have to see what others come up with. Thanks, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Cookie problem

2001-03-25 Thread Martin Skjöldebrand
I'm experiencing all kinds of problems with, what we suppose is the cookie setting. This is the code: if (isset($authentication)) { setcookie("status", $status, time()+600); setcookie("user", $user, time()+600); setcookie("group", $group, time()+600); setcookie("authentication",

[PHP] Variable scope

2001-03-10 Thread Martin Skjöldebrand
How do I make a variable persistent between webpages? V e r b a l -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Value of if(isset(X)) problem

2001-03-06 Thread Martin Skjöldebrand
Sorry bout the length I'm a newbie to PHP/MySQL so bare with me ... Here's a snippet of an app I'm hacking. I have a form that should update a client form. the cl_ are taken from a database table and works nicely. The point of this that they should possibly be replaced by txtXXX and