Hi Guys,
If anyone can help me out i'd appreciate it. Here is the thing, i have two tables "news" and "GC" where "news.ID=GC.NID" !
For example if in the news table i have:
ID(auto-number) NewsTitle
2 blah blah blah blha!
and then in the GC table:
ID(auto-number) NID Category
1 2 cat1
2 2 cat2
3 2 cat3
And i've already setup the table relations where News.ID=GC.NID, what would my Query look like? I want all the results listed under ID "2" in table GC to show in one line rather than multiple lines.
The Query i have now is like this:
<CFQUERY DATASOURCE="#DNS#" name="datab">
SELECT *
FROM News, GC
WHERE News.ID=GC.NID
</CFQUERY>
and then ofcourse i have the CFOUTPUT tag later on to show values, but it doesn't work! It shows the values in multiple lines. What am i doing wrong??
Situation #2:
Ok Now aside from my problem #1, lets say i have all the values in simular tables as said above. And im updating the values, So i want to recall the data and have it put a check mark beside that option?
What i mean is lets say for News.ID #2 i got results from GC table(cat1, cat2, cat3) and now i want it to put a checkmark beside those checkboxes that have the same name?? Is it possible??? Doesn't have to be a check mark option, could be an expanded dropdown list. Can it be done?
I posted two problems, please feel free to answer any; thank you TONS in advance!
Brad
If anyone can help me out i'd appreciate it. Here is the thing, i have two tables "news" and "GC" where "news.ID=GC.NID" !
For example if in the news table i have:
ID(auto-number) NewsTitle
2 blah blah blah blha!
and then in the GC table:
ID(auto-number) NID Category
1 2 cat1
2 2 cat2
3 2 cat3
And i've already setup the table relations where News.ID=GC.NID, what would my Query look like? I want all the results listed under ID "2" in table GC to show in one line rather than multiple lines.
The Query i have now is like this:
<CFQUERY DATASOURCE="#DNS#" name="datab">
SELECT *
FROM News, GC
WHERE News.ID=GC.NID
</CFQUERY>
and then ofcourse i have the CFOUTPUT tag later on to show values, but it doesn't work! It shows the values in multiple lines. What am i doing wrong??
Situation #2:
Ok Now aside from my problem #1, lets say i have all the values in simular tables as said above. And im updating the values, So i want to recall the data and have it put a check mark beside that option?
What i mean is lets say for News.ID #2 i got results from GC table(cat1, cat2, cat3) and now i want it to put a checkmark beside those checkboxes that have the same name?? Is it possible??? Doesn't have to be a check mark option, could be an expanded dropdown list. Can it be done?
I posted two problems, please feel free to answer any; thank you TONS in advance!
Brad