You are here: Re: using heredoc for SQL statements « PHP Programming Language « IT news, forums, messages
Re: using heredoc for SQL statements

Posted by Tom on 09/26/80 11:37

Just noticed another syntax error -- but this wasn't in my original
code and isn't the problem. Nevertheless, statements in code above
should read:

INSERT INTO `table_name` (`col_a`, `col_b`) VALUES ('value_a1',
'value_a2');

or even:

INSERT INTO `table_name` VALUES ('value_a1', 'value_a2');

which produces in my script SQL syntax error:

"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 `table_name`..."

Thanks again,

Tom

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация