Ok, Someone PLEASE Help me, before the keyboard
indentations on my forehead become permanent, from
banging my head against the keyboard ;).
I wanted to do something that I thought was pretty
simple. I need to find some way to tie some data to a
album item. No matter what I do it tends to end up out
of sync. For example, one way of tying an album item
to a record of data in a db, I thought would be to
just add a var in the AlbumItem class named $data_id.
Then I store the primary key of the db record in that
variable. Seems logical to me? Problem is that when I
then do something that will load and resave the album
(just browsing will often do this) then it sometimes
gets out of sync? It doesnt loose the data it just
applies it to the wrote album item? I can make this
happen very consistently by sorting the album on
different criteria. So for example, If I have an album
with 20 items and the $data_id for those 20 items is
'11' through '31'. I then sort the data, it will
change the order of the album items so that the index
is renumbered to the new order but the $data_id will
still be in order from '11' through '31'? All of the
other data is kept in sync? It is like the extra
variable is just ignored? Since it is part of the
object, I thought its state would be maintained with
the object, not independant of it on that index? Does
anyone have any idea what I am talking about or what I
am doing wrong?
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More