Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2011
    Posts
    113
    Thanks
    9
    Thanked 1 Time in 1 Post

    Is there something wrong with this query

    PHP Code:
    mysql_query("INSERT INTO data (username, rank, price) VALUES ($custom_field, $item_name, $payment_amount)"); 

  • #2
    New Coder
    Join Date
    Feb 2012
    Posts
    40
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Possibly missing quotes on values try:
    PHP Code:
    mysql_query("INSERT INTO data (username, rank, price) VALUES ('$custom_field', '$item_name', '$payment_amount')"); 


  •  

    Posting Permissions

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