Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which one is a better practice ?

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
0
0
US
which one is a better practice?

<cfquery ....>
insert into ...
values (<cfqueryparam value="..." cfsqltype="cf_sql_integer" >
</cfquery>

or

<cfquery ....>
insert into ...
values (#FORM.myId#)
</cfquery>

in other words, is it efficient to use <cfqueryparam> in an insert ? thanks for the help
 
Cfqueryparam offers better securiety and format validation.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Yep, I use cfqueryparam on every query for that exact reason.


Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top