There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
CFML Variables


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
erocktroll's Avatar
Member with 43 posts.
 
Join Date: Oct 2003
18-Mar-2005, 08:26 PM #1
Question CFML Variables
Hi all. Any CFML programmers out there???

Here's my situation. Until yesterday, I had never seen or attempted to make sense of any CFML code. Now, a guy in a remote office of ours who claimed to know how to write CFML has turned out to be pretty much useless. I'm doing okay with the CFML for the most part, thanks to Dreamweaver's drag and drop interface, but I have a problem.

I'm creating some very basic pages to access a single table in a MySQL database. I've made a page that shows all of the records, and I can select a record to edit. When I get to the edit page, I have the update command only updating certain fields, and the other fields are display only. What I want to be able to do is append the data that the user types in the field to the end of what is already there. The field is a problem description, so if the first person types "No Sound" and the second person types "Sound card driver failed", I end up with "No Sound., Sound card driver failed."

I know that SQL has a concat function, and I see that cold fusion uses an & to concat. What I'm having difficulty with is getting it to concatenate the correct fields. The edit page displays a record based on a url variable (parameter?) that is passed in from the link the user clicks.
The edit page's select statement uses a where clause that has where=#recordid#, where recordid is the parameter from the url. I need the concat statement to combine the current value of the field with the input value of the field. What's happening with the statement I wrote is that it is always doing the concat on record1 and the input field. I can't seem to get it to use the record number of #recordid#.

I know this question is long and probably doesn't make much sense, but I'm so incredibly new to this, I'm not sure how to phrase it any better. If anyone can help, I'd greatly appreciate it...and if seeing the CFM pages that I have would help, I can do that to.

Thanks all so much!!

Erin
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:51 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.