How to add bulk virtual data in database?

I am trying to add data to a database from a form

  • i know i have the connection right because i can do other things with it .. but when i add this text: sqlstr = "INSERT INTO `members` (`uname`, `pword`, `email`, `fname`, `lname`) VALUES ('request.Form("username")','request.For… 'request.Form("email")', 'request.Form("firstname")','request.For… " oConn.Execute sqlstr i get this error on the browser: Microsoft VBScript compilation error '800a0401' Expected end of statement /signupform.asp, line 22 sqlstr = "INSERT INTO `members` (`uname`, `pword`, `email`, `fname`, `lname`) VALUES ('request.Form("username")','request.For… 'request.Form("email")', 'request.Form("firstname")','request.For… " does anyone know what i'm doing wrong ? any help would be greatly appreciated

  • Answer:

    The way you are building your sql statement is incorrect. Everything up VALUES looks ok, but then you need to do: VALUES (' " & request.Form("username") & " ' " & request.Form .. etc.

Student at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.