Results 1 to 3 of 3

Thread: Whats wrong with this ASP code?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    18
    PLease can u tell me whats wrong ...

    sqlTemp = "INSERT INTO tUsers ( UserID, username, password, accesslevel, points, posts, Name, Email ) VALUES ( " & userID & ", '" & username & "', '" & password & "', 1, 0, 0,'" & realname & "', '" & email & "');"

  2. #2
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Question

    Don't know, Maybe you've missed single commers from the hard coded parts:

    sqlTemp = "INSERT INTO tUsers ( UserID, username, password, accesslevel, points, posts, Name, Email )
    VALUES ( '" & userID & "', '" & username & "', '" & password & "', '1', '0', '0', '" & realname & "', '" & email & "');"
    "It wasn't the booze that made me snooze, It was the Gin that did me in!"

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    It would probably help if you told us what the problem is.. what error message/odd behavior are you getting.

    Your code looks fine if your trying to assign a SQL Insert statement into a variable called sqlTemp.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width