Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RE: insert statement runs twice in place of once Randomly

New Here ,
Nov 22, 2013 Nov 22, 2013

Hi

I am using a simple nsert statement .The insert statement picks a variable
from the form and inserts it into the database
I have no loops in the page
the code is :
<cfif isdefined("Form.Category")>
<cfquery name="InsertCat" datasource="ShoppingCart">
Insert Into ShoppingMstCategory(Category)

Values '#Form.Category#')
</cfquery>
</cfif>

The insert runs twice on its own.
Though if I use Query analyser to insert the statement only inserts once.
am I missing something. I am using CF 10

TOPICS
Getting started
394
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources