|
||||||||||
| Welcome | ||||||||||
|
||||||||||
| Welcome | ColdFusion Articles | |||||||||
|
Tutorial from EasyCFM.comInserting data into a database - This tutorial will show you how to insert data into a database, then have that information emailed to you and the person submitting the data.Retrieving Records From a Database.. - This is the basics of ColdFusion. This tutorial will demonstrate how to query a database and then display the records found. Having Your Database Do The Work, not ColdFusion! - This tutorial will demonstrate how you can use the functions that come built in on your database to do the work, instead of doing the work in your code the hard way! A Simple Contact Us Page.... - Learn how to create a contact page in ColdFusion. Creating a Quick and Dirty Hit Counter - Learn how to Create a quick and dirty hit counter. A quick intro into the world of Custom Tags! - The following tutorial will briefly touch over Custom Tags and show you what they are, how you use them, and how they benfit you by using them. The CFAPPLICATION tag and Session variables.. - In order to use session variables, first you have to instruct the Cold Fusion server that you wish to use them. Here's a tutorial on how to do just that! Alternating Row Colors! - This tutorial will demonstrate how to alternate row colors when outputing your data. Sending multiple attachments with CFMAIL! - This tutorial will demonstrate how to send out multiple attachments with Inserting FORM data into multiple database tables! - This tutorial will demonstrate how you can use one form a user fills out to insert into multiple database tables. Automatically adding CF comments in blank document - All the books on CF tell you to comment your code. And yet, when you create a new CF file in Dreamweaver MX, you have to add the standard comments manually every time. Not anymore! Automatically Adding Smiles To Your Messages! - This tutorial will show you how you can add smiles to your messages on the fly! Send Page Url to A Friend - A simple script where a user can click a link that will take the current templates url and pass it to a email form which they can than fill in with their friends emails addresses to send their friends your site address. Changing site color scheme - Add some personalization to your pages by letting the user pick their own color scheme. It's really quite simple and the benifits are awsome. This tutorial shows you how to set up your pages to use a dynamicly included scheme. It will also show you how to create all the pages neccessary to administer the color schemes. Dynamic Sorting - This tutorial shows the basics of allowing your end-users to dynamically sort the order in which they view your records. You can have as many sort orders as you have fields viewed! Trouble Shooting Cookies that work for you, One Possibility - I had had created a login that used cookies to give access to an area of the website. The owner of the web site could not login to the area using Windows NT, but upon testing I could always login with my windows 98 system. I could not figure out why the NT system would not login, but I could.It seemed to be a coding error by the site owner, since other sites could belogged in to. Some time later I stumbled upon the answer. Frameless Frames in CF - The appeal of frames and the continued use is -- to leave one constant item on a part of the page.However clever, they are a pain to code, setting targets and defining the columns and then there that scroll bar thing. Here is an easy way to create the illusion of frames on your page. Navigation as an include file - Create an include file (custom tag) for your navigation to help make maintenance easier! This include file lights up the button depending on where the user is at in your website, and is XHTML 1.1 validated! If you need to edit your navigation, just do it in 1 place, the include file! Javascript included :) Replacing "enter" key with "<br>" tag - This little piece of code will transform those pesky "enter" keys in a textarea into " " tags so your users input is printed out properly in your html page. Checking for submitted form fields - This sets all of the submitted form fields and values into a list then loops through the list of fields and values. Count Down - Easy CFM file that counts down from a distant date to the present. Can show how many days, months, or years. IP checker - Checks to see where the user came from and then decides where to send them. Auto Event Emailer - Queries the database everyday and sends an email automatically when certain events happen. Creating Databases in MS SQL2000 - How to get your Data into MS SQL2000 and interface with Coldfusion in 34 Easy Steps! Print your web pages on the fly! - This tutorial will demonstrate how use ColdFusion, Javascript and Style sheets to create the perfect Printing Machine! ;) Creating a Link Management System - This quick tutorial, shows you how to creat a Link system, that will count the amount of hits that your links create. Easy automatic debugging - Extend the use of the new Creating Dynamic Image Galleries - A tutorial showing you how you can upload one Full sized picture, and have a thumbnail automatically created for you, along with descriptions of the image! Creating Dynamic Bar Charts - A tutorial showing you how you can create a dynamic bar chart! The Easiest Way to make a form! - This is by far the most easiest and simplest way to make a form and update it to the database, very low maintenance and very very quick!! Creating an ODBC Connection within ColdFusion MX Server... - This tutorial will show you how to create an ODBC (Database) connection from within your ColdFusion MX Administration Area. Writing your first custom tag - A step by step guide on writing your first custom tag Changing the Developer Edition IP Address - This article gives background and instructions on how to change the IP used in the Developer Edition of both CF5 & MX.You can link through to my site at www.defusionx.com CFSCRIPT Intro - An introductory look at CFSCRIPT. Rules, some basic syntax, and a couple of examples of loops and conditional processing. Adding an indexed Search to your site (Part 1) - It is very easy to set up and create a professional search function much like a real search engine. Use Verity Collections and the CaSe SensitiVe password logins! - This tutorial will demonstrate how to verify users passwords to be CaSe SensiTive so add another layer of security to your applications! Show Source to Friends - Not really a tutorial but some code to help you solve programming problems by showing your code online to your friends or associates. Shout Box [LIVE]! - Ever want a place where people can chat or post their opinions? Ever heard of a shout box? This tutorial will give you an easy example of having a shout box on your site. Display random images each time a page loads or is refreshed - This tutorial will show you how easy it is to display an unlimited number of images randomly on your pages. Each time a page is loaded or refreshed a random image will load. Adding an indexed Search to your site (Part 2) - The long overdue part two of adding a verity search function. This part demonstrates how to index the information in your database so that it becomes usefull too. What version of CFMX is my host running? - As of writing this there are four flavours of CFMX, for Windows at least, floating about. You may know what version YOU are running but what about your hosting provider? Run the code below to find out. Simple Regular Expressions - It's a first in a three part tutorial on Regular Expressions, what they are, simple uses for them and also a test at the end. It goes through simple matching, start and end of strings, grouping and the | (OR) operator. The better way to handle session variables - You can use these simple loops in place of many lines of code to clear out or delete session variables Scope your variables - Increase performace and readability by always scoping your variables ColdFusion Mad Libs - Part I - A silly but fun time-waster that you can easily include on your Web site. You might be surprised at how addicting it can become :) ColdFusion Mad Libs - Part II - You've finished the first Mad Libs tutorial, but you feel like there's something missing. Of course there is! You want to be able to save the final output to a database to let your visitors browse through other user's stories. Includes a bad-words filter for the more conservative among us :) to cfqueryparam or not to cfqueryparam - It's been out there since ColdFusion 4.5...most of us have heard of it...few of us use it. Here are some compelling reasons why you should get into the habit of using the Dynamic Column Output (Part One) - Have you ever wanted to display your Dynamic Column Output (Part Two) - This tutorial picks up where the Dynamic Columns tutorial left off, showing you how to not only output your data in a specified number of columns, but how to do it while still publishing well formed HTML. Uploading Files in ColdFusion - Have you ever wanted to learn how to upload files to your website and database through your web browser in ColdFusion? If so, then this tutorial may be what you need to get started. Small difference that can cause big troubles! - Trying to restrict certain pages of a CF MX Site via server behaviours isn't every time an easy task! Grouping Output in CF - How to group cfquery output in order to effectively display relational database data. Includes an overview of how to output nested groups as well. Adding form results to a file (not database) - A very simple tutorial that explains how to add information submitted from a form into a logging file. Very simple, yet lots of possibilities. Important for the beginning CFM programmer Delete Records From Your Database With ColdFusion! - This tutorial will demonstrate how to delete records from a database via your website using ColdFusion. Why have my CFFORM's suddenly broken - using CFFORM in a hosted environment - If you are using the CFFORM tag in a shared hosting environment, and why wouldn't you as CF form elements can be very useful, you may now be receiving obscure JavaScript errors when your form loads. Never fear, the solution is a simple fix to an annoying problem Add a newsfeed to your site - Use the Moreover news service to add a newsfeed to your site using cfhttp and wddx in 5 minutes! The easiest method for multiple dynamic and dependant drop down lists, period. - The first EASY method for creating multiple, dependant, database driven drop down select boxes... Honestly! Simple Site Skinning with ColdFusion - A very basic introduction to site skinning using ColdFusion and CSS. Give your visitors the ability to choose the site design they want to use when on your website. Dynamic Sorting with CFSWITCH - Quickly and easily sort and order records in your database using a cfswitch in your query. Great technique for admin areas of your site, or just allowing visitors to sort the fields they want. arrays and structures - part 1 - part one of a three-part tutorial designed to gently introduce you to the world of complex variables. arrays and structures - part 2 - part two of a three-part tutorial designed to gently introduce you to the world of complex variables. arrays and structures - part 3 - part three of a three-part tutorial designed to gently introduce you to the world of complex variables. Random String/Password Generation - This is a custom tag I wrote that generates a random string at the set number of characters using the characters you decide onAlphaAlphaNumericor NumericUppercase, lowercase, mixed case...It will create a variable that you name as you wish and call however you'd like.It is a small example of how to create a custom tag and will hopefully send someone in the right direction. It is also fully functional and has come in handy quite a few times. Enjoy and as always.. Have Fun! CF 'Best Practices' - Some tips and techniques that I've picked up over the years. I don't maintain that these are 'official' or 'absolute'...they are simply my preference and things that have worked for me. I would like to share them here, and leave you to make the decision as to whether or not they fit in your 'code arsenal' :) A Basic Calendar Application to Build on - I have seen quite a few people looking for prebuilt calendar apps but the people I wrote this for are the people who wanted a headstart in building their OWN custom calendar app.It is very basic and does nothing more than display the currently selected month/year's calendar and give links to the PREVIOUS the NEXT month's calendars by using The DateAdd() function. Basically the backbone of any calendar app.Enjoy. and as Always.. HAVE FUN! Random Images In a Few lines of code - Ever wanted to run random images on your site, but didnt want tons of code? Here you go, every time the user refreshes the image is changed. Helping users obtain their passwords - Your site requires your visitors to log in. of course, some of your visitors are going to forget their passwords (ok, most will forget their passwords). You don't want them to have to send you an e-mail, and then wait for a response. They need immediate access. This tutorial shows two methods by which you can accomodate them. |
|
||||||||
![]() |
||||||||||