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;
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
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",
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]
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
5 matches
Mail list logo