Leo108's Blog
  • 首页
  • 版权声明
  • 联系我

mysqli

A collection of 1 post

mysqli

PHP查询多条sql语句

PHP的函数mysql_query仅支持单条sql语句的查询,如果传入参数含有多条sql语句会报语法错误。 百度搜索了下,PHP的mysqli是支持多条查询的,示例代码如下: $dbh = "localhost"; $dbn = "temp"; $dbu = "root"; $dbp = "root"; $query = "insert test (text) values('1111');"; $query .= "insert

  • Leo Chen
    Leo Chen
1 min read
Leo108's Blog © 2019
Latest Posts Ghost