Doc #66916 [Com]: mysqli::query: Include hint that only one statement is allowed

[email protected] ("vivekmittakdg at gmail dot com") Wed, 12 Apr 2023 07:25:07 +0000
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=66916&edit=1

 ID:                 66916
 Comment by:         vivekmittakdg at gmail dot com
 Reported by:        thomas at landauer dot at
 Summary:            mysqli::query: Include hint that only one statement
                     is allowed
 Status:             Verified
 Type:               Documentation Problem
 Package:            MySQLi related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Technologies Watch are sharing latest news about tech, gadgets, digital marketing, seo, smo, web development etc. More info to visit: (https://technologieswatch.com)github.com


Previous Comments:
------------------------------------------------------------------------
[2021-07-20 10:47:24] [email protected]

Right.  For multi-queries you need mysqli_multi_query().

------------------------------------------------------------------------
[2014-03-17 11:26:13] thomas at landauer dot at

Description:
------------
---
From manual page: http://www.php.net/mysqli.query
---

Please include this hint from mysql_query in mysqli::query too:
mysql_query() sends a __unique query (multiple queries are not supported)__





------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=66916&edit=1