Results 1 to 6 of 6

Thread: phpmyadmin

  1. #1
    creatorz is offline new member
    Join Date
    Aug 2009
    Posts
    3

    Default phpmyadmin

    wondering if any of you guys could help me out.

    I'm having problems with my sql database. I made the data base and then made the table with three fields and it was created all was good but when I inputed data from my website(I set up a form using "formloom" and linked it too the database/table) I got an 1064 sql error message. I realized that I need to direct those three fields too the ones in the table and tried writing some insert code" insert into dbname.tablename('name':'email':'date')

    but it didnt like that,hope you guys can help

  2. #2
    Ben Stones's Avatar
    Ben Stones is offline Customer Interaction Associate
    Join Date
    Jan 2007
    Location
    United Kingdom
    Posts
    3,006

    Default

    Could you paste the SQL error message(s) you get?
    Domains Registrations @ £7.49pa! - Download the official eUKhost Android and iOS App!

    eNlight Cloud Hosting - Cost-Effective, Autoscaling Cloud Hosting
    How does eNlight work? What differences and benefits are there to VPS and Dedicated Servers?

    Chat to us on Twitter!
    Join our incentive affiliate program now - and earn generous commission with each sale!

    How do I contact eUKhost?
    Support: Client Area - 0808 262 0455
    Sales: sales[@]eukhost.com - 0800 862 0380
    Contact eUKhost Management

    Customer Relations:
    feedback@eukhost.com - 0808 262 0255

    Contact:
    ben@eukhost.com
    Skype: euk_ben
    Windows Live Messenger: ben@eukhost.com


    Don't ever let other people's thoughts, feelings, perceptions and/or opinions drown over yours. You know yourself the best. Go with what you think is right. Everyone else's opinions or statements about you or others are secondary.

  3. #3
    creatorz is offline new member
    Join Date
    Aug 2009
    Posts
    3

    Default

    here is the error message

    Alert
    MySQL Error!

    1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and email SET Please enter full name = 'justin', Please enter your E-mail Addres' at line 1
    When executing:
    INSERT INTO name and email SET Please enter full name = 'justin', Please enter your E-mail Address = 'brokenleg513@aim.com', please enter a date = '08-04-2009', = '69.114.5.120', = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12', = NOW()

  4. #4
    DavidAllen's Avatar
    DavidAllen is offline Premium Member
    Join Date
    Jan 2007
    Location
    Amersham
    Posts
    511

    Default

    assuming your table is called USERS and the fields are name, email and date. Then the sql would be:

    INSERT INTO USERS set name="Justin", email="Broke...", date=NOW()

    hope this helps
    David Allen - www.serina.co.uk

  5. #5
    creatorz is offline new member
    Join Date
    Aug 2009
    Posts
    3

    Default

    I altered the code you gave me but it gave me this error message



    INSERT INTO 'name and mail' set name="Justin", email="Brokenleg513@aim.com", date=NOW()




    SQL query: Documentation

    SELECT *
    FROM `name and email`
    WHERE 1
    INSERT INTO 'name and mail'
    SET name = "Justin",
    email = "Brokenleg513@aim.com",
    date = NOW( ) LIMIT 0 ,
    30

    MySQL said: Documentation
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO 'name and mail' set name="Justin", email="Brokenleg513@aim.com", dat' at line 3




    I'm given the field names on the side and thats confusing me I think i'm support to fill in those fills instead of "justin" etc etc. Or is this process just for one single update. I hope you can help me clear some of this up

  6. #6
    Noel is offline Senior Member
    Join Date
    Jul 2007
    Posts
    155

    Default

    the set clause should not be part of an insert statement

    The correct syntax for insert is (from memory)

    INSERT INTO 'name and mail' (name,email,date) values ("Justin", "Brokenleg513@aim.com", NOW())

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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