php - Multitable stores when other store locations are in sub-table -
php - Multitable stores when other store locations are in sub-table -
so have database allows list of businesses. master table has client aka businesses details:
id firstname lastname tradingname storeaddress state postcode
in table called otherstores, have following:
master_id store_id storeaddress state postcode phonenumber
what need php script allows me show stores in list function here catch:
i want show 8 stores different types of categories random.however need not show store twice on same search. need create sub-stores aka otherstores randomly added query seeable well.
i wondering best way this.
why don't have code:
it's tough show code thought left bring together or inner bring together , limit id 1.
however know won't work because need able bring together them how, want each sub store master store if bring together master table can't see working, , instead errors.
php mysql table select
Comments
Post a Comment