masterz2k
08-16-2009, 11:22 PM
Hi Guys,
Struggling to come up with a solution to a problem!
I want to query a table which will in turn givbe the table names to perform the rest of the query on,
Basicaly its:
webgrp table
headers table
pg***
webgroup contains an id and a table..
so if i was to query webgroup with ID = 1 . i would get back pg101, pg104, pg136.
i then want to query each table pg101, pg104, pg136 to return a value where jtype = $jtype. (basicaly a variable which has been pre defined by another menu system)
i'd also like to bring in a description column from the headers table.. basicaly that contains pg*** and a value to what that table contains.
can anyone suggest the start of a query that i can develope in the direction needed?
results from the pg*** tables once filtered by the $jtype will only number max 5.
so basicaly, id want to end up with a table like..(headers below)
webgrp / pggrp / description / value
eg: 1 pg104 / itemdesc / value from the pg104 table
any help would be very much appriciated!
Struggling to come up with a solution to a problem!
I want to query a table which will in turn givbe the table names to perform the rest of the query on,
Basicaly its:
webgrp table
headers table
pg***
webgroup contains an id and a table..
so if i was to query webgroup with ID = 1 . i would get back pg101, pg104, pg136.
i then want to query each table pg101, pg104, pg136 to return a value where jtype = $jtype. (basicaly a variable which has been pre defined by another menu system)
i'd also like to bring in a description column from the headers table.. basicaly that contains pg*** and a value to what that table contains.
can anyone suggest the start of a query that i can develope in the direction needed?
results from the pg*** tables once filtered by the $jtype will only number max 5.
so basicaly, id want to end up with a table like..(headers below)
webgrp / pggrp / description / value
eg: 1 pg104 / itemdesc / value from the pg104 table
any help would be very much appriciated!