Re: how to link different but related tables
From: mireero <mireero_at_free.fr>
Date: Sun, 20 Mar 2016 22:14:08 +0100
Message-ID: <56ef12ac$0$9236$426a74cc_at_news.free.fr>
Date: Sun, 20 Mar 2016 22:14:08 +0100
Message-ID: <56ef12ac$0$9236$426a74cc_at_news.free.fr>
On 03/13/2016 03:11 PM, Jerry Stuckle wrote:
>> Or (without eval), putting all different actions in a big switch/case:
>> >
>> >switch($product_type) {
>> >case 'dematerialized':
>> > // Actions to build html code related to dematerialized product
>> > break;
>> >case 'physical':
>> > // Idem for physical items
>> > break;
>> >...
>> >}
>> >
> Terrible. Code should never depend on database design.
>
Thanks everyone for hints/info.
I still have one question, I don't really understand the above comment.
I think that's the idea behind this comment.
Nevertheless, I still don't understand because those 2 parts are closely related.
Anything I'm missing? Received on Sun Mar 20 2016 - 22:14:08 CET