Hi All,
I Have a MySQL database that holds information on products, description prices etc, and I need to select 2 separate product groups from 1 column and display the selected products on the page.
I know you can query the database twice, but I wondered if it would be better to just query it once, the two separate queries are:
SELECT cesproducts.*, cesprices.price FROM cesproducts, cesprices
WHERE `cesproducts`.`prodline` = 'JCS Hose and P Clips'
AND `cesproducts`.`partnumber` = `cesprices`.`partnumber`
and
SELECT cesproducts.*, cesprices.price FROM cesproducts, cesprices
WHERE `cesproducts`.`prodline` = 'Mikalor Clips and Clamps'
AND `cesproducts`.`partnumber` = `cesprices`.`partnumber`
The data will be displayed using scripty accordian to reveal the selected product range.
Any solutions gratefully received.
Steve
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options