Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-12-2013, 09:00 AM   PM User | #1
leptoon
New to the CF scene

 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
leptoon is an unknown quantity at this point
Trouble with submitting data to MySQL database

Resolved.

Last edited by leptoon; 02-12-2013 at 09:55 AM..
leptoon is offline   Reply With Quote
Old 02-12-2013, 09:29 AM   PM User | #2
Thyrosis
New Coder

 
Join Date: Nov 2012
Posts: 72
Thanks: 4
Thanked 11 Times in 11 Posts
Thyrosis is on a distinguished road
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
Thyrosis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:42 PM.


Advertisement
Log in to turn off these ads.