Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ColdFusion noob question(s).

Featured Replies

Hi all,

 

Apologies in advance if this is a question with a very obvious answer. The previous person who designed a website database based on ColdFusion has up and left and the owner has not heard from him for a while. I've been asked to take over on a few aspects, mainly design and setting up a CMS for him for basic editing. I've also been asked to look at this ColdFusion database.

 

I've never used ColdFusion before. Essentially what I need to do is create a new database which displays results for this year, how do I do this? Do I need access to MySQL?

 

To give you an example, here's the results page, fully populated with peoples information.

 

wwwdotpigeonnetwork.com/admin/clubs/index.cfm

 

I need this to be blank, so that people can start from scratch for this year. Any ideas? I have very limited access to certain features, i.e. MySQL as previous person would have set this up etc.

 

Any help would be much appreciated,

 

Many thanks.

 

Chris.

OMG! Cannot believe that 10 years have passed since I dropped my CF programming.

  • Author

duplicate res_ind_10.cfm, call it res_ind_11.cfm or something and change all the date queries from 2010 to 2011 (they will be in <cfquery></cfquery> tags).

 

Thanks for your reply Jock. Unfortunately, I'm none the wiser. :-/ I've pasted some of the code from res_ind_10.cfm below in case that might help.

 

<cfquery name="GetR" datasource="pnet"> 
SELECT club_results.ClubName, club_results.DateEnter, club_results.ID, club_results.OB, club_results.Mem1, club_results.Mem2, club_results.Mem3, club_results.pos, club_results.Vel1, club_results.Vel2
FROM club_results
WHERE ob='Y'
ORDER BY"DateEnter"DESC
</cfquery>
<cfquery name="GetRy" datasource="pnet"> 
SELECT club_results.ClubName, club_results.DateEnter, club_results.ID, club_results.OB, club_results.Mem1, club_results.Mem2, club_results.Mem3, club_results.pos, club_results.Vel1, club_results.Vel2
FROM club_results
WHERE yb='Y'
ORDER BY"DateEnter"DESC
</cfquery>

<cfquery name="qVerify" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine, Clubs.Section, Clubs.Photo
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Nipa'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="EDC" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'East Down Combine'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="UF" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Ulster Federation'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="MF" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Munster Federation'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="LF" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Lanarkshire Federation'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="ECFD" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'East Coast Fed Dublin'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="ISRF" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE FedCombine= 'Irish South Road Fed'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name='ClubWinsO' datasource='Pnet'>
				SELECT COUNT(Mem1) as total, Mem1
				FROM club_results
				GROUP BY Mem1
				ORDER BY count(mem1)DESC 
				</cfquery> 
				<cfquery name='ClubWinsY' datasource='Pnet'>
				SELECT COUNT(Mem1) as total, Mem1
				FROM club_results
				WHERE YB='Y'
				GROUP BY Mem1
				ORDER BY count(mem1)DESC 
				</cfquery> 
<cfquery name="fife" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Fife Federation'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="Solway" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'Solway Fed'
				ORDER BY"ClubName"ASC
				</cfquery>
<cfquery name="Cumbria" datasource="pnet"> 
                   SELECT Clubs.ID,Clubs.ClubName, Clubs.FedCombine
                   FROM Clubs
				WHERE Clubs.FedCombine= 'West Cumbria Fed'
				ORDER BY"ClubName"ASC
				</cfquery>

 

Thanks again.

  • Author

Jock, again, many thanks for you help. Unfortunately a more serious problem has emerged and it's very difficult as I generally don't work with databases etc.

 

In the control panel I changed the mysql4 password, thinking that I would then be able to access databases that I was locked out from - but I can't. That's not the problem though. The problem now is that whenever I click on, for instance, race results - which would list results based on the database, an error appears. The error that appears is a custom page that the previous person designed, but on checking the error e-mail that's automatically sent, I get this message...

 

=========================================================== 
Error: -///- March 25, 2011 08:28:37 AM
Diagnostics: -///- Error Executing Database Query. [Macromedia][sequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'club_results'. Make sure it exists and that its name is spelled correctly. 
The error occurred on line 59.
Browser -///- Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Mobile/7D11
RemoteAddress -///- 86.157.1.154
HTTPReferer -///- wwwdotpigeonnetworkdotcom/
Template -///- /admin/clubs/index.cfm
QueryString -///- 
====================

 

As I said, the only thing that I believe I've changed is the password. It should be able to find 'club_results' with no issues. I've tried uploading older copies of the page etc and nothing has worked. :-(

 

If anyone can help me with this, a beer will be coming your way.

 

Chris.

  • Author

Anyone have any ideas? I'm sure this is much simpler than I am making it out to be.

 

Chris.

  • Author

if you changed the password, did you update your coldfusion scripts to have that new password as well? You'll need to change the ODBC connector.

 

That's exactly what the problem was. I changed the ODBC connector in the control panel. Rookie mistake, but I got there after losing much of my hair anyway.

 

Thanks.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.