live records

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey all,
Been working on this nearly the whole night so i dont really know if this is
all that hard or am just braindead.

Heres what i am doing:
I am reading off an array from the users cookie called "user_cookie"
the array is a bunch of numbers like this:
254
7785
5899
540055
etc
the numbers are the cart items the user has saved and they match a
"item_number" field in my mysql db, the arrays name is $cart_arr

what i am doing is running a select * from my_db where item_number=x and
item_number=x etc based on the items stored in the array, this info will be
displayed in a neat little table when he clicks on "show items in my cart"
or something as such...so far so good, heres my problem:

sometimes items get deleted or are taken off the "active" list, when this
happens I would like to take out these times from $cart_arr....how do i do
that?


eg:
user has these items in his cart ($cart_arr):
1
2
3
4

Item number 3 has been taken taken off the active list, so $cart_arr should
now contain only
1
2
4

Thanks in advance,
Ryan



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux