FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » insert query error
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: insert query error [message #174612 is a reply to message #174605] Wed, 22 June 2011 10:04 Go to previous messageGo to previous message
Jonathan Stein is currently offline  Jonathan Stein
Messages: 43
Registered: September 2010
Karma:
Member
Den 21-06-2011 21:48, Jerry Stuckle skrev:

>> Could not successfully run insert query :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 ''','','','','','','','','','','')'
>> at line 2
>
> You have a MySQL message - ask in a MySQL newsgroup, such as
> comp.databases.mysql.

Why bother a MySQL group? - They won't be able to help from the message.

The solution is to:

1. Add PHP code to print the SQL statement. (PHP task)

2. Realize where the missing or extra ' is. (SQL task - but after step
1, the poster probably won't need help for this step)

3. Fix the PHP code to generate a valid statement. (PHP task)

> This isn't a PHP problem.

We could discuss this, but the solution involves more PHP than SQL, so
this group is fine for the question. The poster should just have
included the code generating the SQL query.

Regards

Jonathan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Command line cannot fwrite, browser can
Next Topic: gret
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 05:34:43 GMT 2024

Total time taken to generate the page: 0.04186 seconds