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
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Trouble with submitting data to MySQL database

    Resolved.
    Last edited by leptoon; 02-12-2013 at 10:55 AM.

  • #2
    Regular Coder
    Join Date
    Nov 2012
    Posts
    117
    Thanks
    7
    Thanked 12 Times in 12 Posts
    Hey leptoon,

    Can you echo the SQL query which causes the error?

    Just replace
    PHP Code:
    mysql_query($sql$sql_connection) or trigger_error('Query failed: 'mysql_error()); 
    by
    PHP Code:
    mysql_query($sql$sql_connection) or trigger_error('Query failed: 'mysql_error().' Query: '.$sql); 
    or something.

    I always get annoyed with a syntax error 'somewhere close to this very long part of the query' =D


  •  

    Posting Permissions

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