Re: HELP!! comparing arrays
| From: | Yasuo Ohgaki | Date: | Sat, 07 Apr 2001 04:06:50 +0000 |
| Subject: | Re: HELP!! comparing arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47542@lists.php.net to get a copy of this message | ||
How about post some code that does not work as expected?
(Simpler code is better)
Regards,
--
Yasuo Ohgaki
""paula"" <paula@nervesane.net> wrote in message
news:001501c0bf29$2f35e740$0f01a8c0@pau...
Hi-
I'm new here and have this problem that's DRIVING ME CRAZY.
I have two arrays as a result of two queries that I have to compare. Supose this
two tables:
This is my today table showing my actual stock (2001-04):
t-shirt blue L
jacket black M
sweater red S
shirt white M
Then I have a future stock table, it's showing changes for the next month
(2001-05).
t-shirt red L
sweater green S
If the user selects in a menu 2001-04 the orginal first table should display.
But if user selects 2001-05 this should be display:
t-shirt red L
jacket black M
sweater green S
shirt white M
This has to work with PHP3 and using PHPLIB templates. I've tried EVERYTHING!
Nested whiles, nested for, just E V E R Y T H I N G . I don't know what else to
do and my nerves are about to kill me.
PLEASE! ANY HELP IS WELCOME!!
thank you people,
/paula