ColdFusion Tutorial

Insert data into database

This shows how to insert data into the database.

 

<!--- Set the variable First Name. --->
<cfset First_Name = "Tom">
<!--- Set the variable Last Name. --->
<cfset Last_Name = "Jackson">
<!--- Run the insert query. --->
<cfquery name="add_person" datasource="persondb" username="" password=""> 
INSERT INTO person 
(Person_First_Name,
Person_Last_Name)
VALUES 
('#First_Name#',
'#Last_Name#')
</cfquery>

ColdFusion Tutorial test

Insert data into database

No test is available or implemented for this ColdFusion Tutorial.

No User Comments.

No User Comments, be the first one to write your comments?

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
8Dx
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday