guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
So i'm busy ****ing around with this crappy "PHP" thing you guys are so fond of (lol)
I have a database column that contains a serialized array. Now it's piss reading the column/unserializing it and doing the array stuffs I need to do (holy ****, if I knew it was this easy working with arrays in PHP I'd have kicked ASP a long time ago)
ANYWAY
The issue now is that the client wants to query the data IN the serialized array that is stored in the MySQL column before it gets read out.
sort of like, select * from my**** where theserializedcolumncontainingarray.brandname = "Sony"
So the sample above is just pseudo code, the serialized array within the column in the db contains a column "brandname" and the dude wants to query it like above more or less because it obviously makes sense not to push through the entire dataset to php to process one by one right?
Help plox. Imma n00b
I have a database column that contains a serialized array. Now it's piss reading the column/unserializing it and doing the array stuffs I need to do (holy ****, if I knew it was this easy working with arrays in PHP I'd have kicked ASP a long time ago)
ANYWAY
The issue now is that the client wants to query the data IN the serialized array that is stored in the MySQL column before it gets read out.
sort of like, select * from my**** where theserializedcolumncontainingarray.brandname = "Sony"
So the sample above is just pseudo code, the serialized array within the column in the db contains a column "brandname" and the dude wants to query it like above more or less because it obviously makes sense not to push through the entire dataset to php to process one by one right?
Help plox. Imma n00b