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

Posted by zoe@bytenoise.co.uk on 09/26/24 11:37

You're right: your use of heredocs is fine, and the semicolon is to
blame. Although you can group several queries together using the
command
line MySQL program, and using PhpMyAdmin, it doesn't work this way in
PHP. You have to submit only one query at a time, so that you can
process the result of each query seperately (even if the query won't
give you a particularly useful result, it still has to be seperated).

Zoe.

 

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

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