|
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]
|