$result = mysql_query("SELECT adstack_accpt_$ct,menucon_$ct FROM sfb_pages WHERE adstack_$ct = 1");
$links = array_map("parse_output",mysql_fetch_array($result, MYSQL_ASSOC));
Ok the code above is my basic query....
now I would assume a for loop would work to go through the query 5 times. varialbe $ct would be the counter.and also point to which information to gather.
there are actually 5 columns each for
adstack 1
adstack 2
adstack 3
adstack 4
adstack_ 5
adstack_accpt_1
adstack_accpt_2
adstack_accpt_3
adstack_accpt_4
adstack_accpt_5
now what I am trying to achieve is this... adstack_accpt$ct either holds a value of 'y' or 'n' and the adstack$ct holds either of the 2 values '1' or '2'
now I want to echo menucon$ct where adstack$ct = 1 and adstack_accpt_$ct = y
I hope this helps better.. and Thank you!