I have created a Juke box for a client and have been loading content in with
a text file. I have had other flash movies to use a cfm to pull in content
variables from a database but I just cannot seem to get this to work.
The code in the flash jukebox movie is:
loadVariablesNum("cisum/music.cfm", 0, "GET");
The code in the music.cfm file is this:
<cfquery datasource="newbreed" name="rsGetMusic">
SELECT Music.MusicID, Music.MusicName, Music.MusicLink, Music.ArtistID,
Music.Description, Music.CollectionID, Music.Price, RISArtists.ArtistName,
RISArtists.ArtistBio
FROM Music, RISArtists
WHERE RISArtists.ArtistID = Music.ArtistID
</cfquery>
<cfset count = 1>
<cfcontent type="text/plain">
<cfoutput>SiteMusic=<cfloop
query="rsGetMusic">#rsGetMusic.MusicID#,#rsGetMusic.MusicName#,#rsGetMusic.A
rtistName#,#rsGetMusic.MusicLink#.mp3,#rsGetMusic.ArtistBio#,#rsGetMusic.Des
cription#,#rsGetMusic.ArtistID#,#rsGetMusic.CollectionID#,#LSNumberFormat(rs
GetMusic.Price,',99999999999999.99')#<cfif count NEQ
rsGetMusic.recordcount>,</cfif><cfset count=count+1></cfloop></cfoutput>
The code in the flash Newsreader movie is:
loadVariables("news.cfm", "content");
The code in the news.cfm file is this:
<cfcontent type="application/x-www-urlform-encoded">
<cfheader name="pragma" value="no-cache">
<cfheader name="expires" value="#now()#">
<cfquery datasource="newbreed" name="get_Special"
cachedwithin="#createtimespan(0, 0, 30, 0)#">
SELECT OTBSpecials.SpecialTitle, OTBSpecials.SpecialContent,
OTBSpecials.SpecialLink, OTBSpecials.SiteThumbnail
FROM OTBSpecials
</cfquery>
<cfset count = 1>
<cfoutput>
<cfloop
query="get_Special">&article_title#count#=#get_Special.SpecialTitle#&article
_content#count#=#get_Special.SpecialContent#&article_link#count#=#get_Specia
l.SpecialLink#&special_thumb#count#=#get_Special.SiteThumbnail#<cfset
count=count+1></cfloop>&no_of_feeds=#get_Special.recordcount#&
</cfoutput>
I have tried to put in the top three lines but that does not seem to do any
good. What am I missing here?
Thanks in advance,
iam bennu
reply@iamARTevolutions.net