67 Posts
Mario Adrian
10 years ago
1
Topic

Hello

i'm trying to get the content from group x from the table directly

whats the best way to easily decode them?

example:

in table, it's stored as

::cck_dx_indoor::dx_collection_detail::/cck_dx_indoor:: ::art_title|0|dx_indoor::Aruba Armchair::/art_title|0|dx_indoor:: ::dx_collection_image|0|dx_indoor::images/collection_image/57/aruba-indoor.jpg::/dx_collection_image|0|dx_indoor:: ::dx_collection_type|0|dx_indoor::29::/dx_collection_type|0|dx_indoor:: ::dx_collection_material|0|dx_indoor::19::/dx_collection_material|0|dx_indoor:: ::dx_collection_description|0|dx_indoor::Art No. 510915 W 63 x D 60 x H 86 x SH 43 cm W 24.80 x D 23.62 x H 33.86 x SH 16.93 inches ::/dx_collection_description|0|dx_indoor:: ::cckend_dx_indoor::::/cckend_dx_indoor:: ::dx_outdoor::1::/dx_outdoor:: ::cck_dx_outdoor::dx_collection_detail::/cck_dx_outdoor:: ::art_title|0|dx_outdoor::Aruba::/art_title|0|dx_outdoor:: ::dx_collection_image|0|dx_outdoor::images/collection_image/57/aruba.jpg::/dx_collection_image|0|dx_outdoor:: ::dx_collection_type|0|dx_outdoor::29::/dx_collection_type|0|dx_outdoor:: ::dx_collection_material|0|dx_outdoor::19::/dx_collection_material|0|dx_outdoor:: ::dx_collection_description|0|dx_outdoor::Aruba Armchair Art No. 650030 W 62 x D 60 x H 87 cm W 24.41 x D 23.62 x H 34.25 inches Maryland Round Dining Table D120 Dia Ø 120 x H 75 cm Dia Ø 47.24 x H 29.53 inches::/dx_collection_description|0|dx_outdoor:: ::cckend_dx_outdoor::::/cckend_dx_outdoor::

is there any easy way to just like

$indoor = {group x};

$image = $indoor->image

$type = $indoor->type;

etc?

i can use RegEx but it's harder and prone to mistakes

any suggestion?

Get a VIP membership
693 Posts
rpoy
10 years ago
0
Level 1

Hi Mario,

Have you seen this article?  

Hope that helps,

Randy

Get a Book for SEBLOD