SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    indiana
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INSERT issue due to INT

    Forgive me, this is probably easy but I'm having trouble getting part of the INSERT statement into my MySQL database.

    INSERT into apps_bestbuy (prodcode, grpcode, step1, step2, step3, step4, skuID) VALUES ('" & request("prodcode") & "','" & request("grpcode") & "','" & request("step1") & "','" & request("step2") & "','" & request("step3") & "','" & request("step4") & "','" & request("skuID") & "')

    All fields are going in except for the prodcode field. I believe this may be because the prodcode field is an INT where all other fields are VARCHAR's.

    Can anyone help? Thanks!

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    well, that's your answer, then, remove the single quotes around the prodcode value

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

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