Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Loop through array, change headings Date: Wed, 01 Jan 2014 17:56:35 +0100 Lines: 33 Message-ID: <52C448C3.4080607@arnowelzel.de> References: <1muwjkgu5s0oj$.1f9jdj8mm94rc$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net SiEddv8+tpXXa23iYQmApQADU8psVue527wDxy7NZ/j575oGSv Cancel-Lock: sha1:Qo86VpddVsiuiKNGiVPkZwMerZI= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <1muwjkgu5s0oj$.1f9jdj8mm94rc$.dlg@40tude.net> Xref: csiph.com comp.lang.php:12483 Am 31.12.2013 23:06, schrieb richard: > On Tue, 31 Dec 2013 21:08:42 +0000 (UTC), Adrienne Boswell wrote: > >> I'm sure this has been asked and answered, but I am either too stupid to >> figure out the right way to ask Google, or I'm lazy, or it really hasn't >> been asked. Sorry in advance, and if it has been answered, please refer >> me as needed. >> >> Here's my situation: >> I have a table that has three classifications: [...] >> I have another table that has categories in each classification, eg. >> id Category Classification_id >> 1 Market 1 >> 2 Pet Shop 1 >> 3 Pizza 2 >> 4 Sandwich 2 >> 5 Notary 3 >> 6 Repair 3 [...] > Why not have one table? > id | stores | restaurant | services Please ignore such recommendations - richard seems to be incapable to understand software development at all when you review his posts in the last couple if years. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de