We help IT Professionals succeed at work.
Get Started

godaddy - insert query could not execute

Loganathan Natarajan
on
587 Views
Last Modified: 2013-12-12
I am using godaddy site and trying to do insert with the below code.

The same code is used to select the records and it is working fine. Why the insert statement is not executed on the code.

Thanks
sqlinsert = "insert into enquiry(inq_name, inq_comp, inq_email, inq_phone, inq_address, inq_city, inq_state, inq_zip, inq_country, inq_products, inq_submitted) values ('"&replacequote(strname)&"', '"&replacequote(strcompany)&"', '"&replacequote(stremail)&"',  '"&replacequote(strphone)&"', '"&replacequote(straddress)&"','"&replacequote(strcity)&"', '"&replacequote(strstate)&"', '"&replacequote(strzip)&"', '"&replacequote(strcountry)&"', '"&replacequote(strHTML)&"','"&strdatetime&"')"
				
				'response.Write(sqlinsert)				
				'response.End()
				set rs_product2=server.CreateObject("adodb.recordset")
				rs_product2.Open sqlinsert,con,1,1

Open in new window

Comment
Watch Question
Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE