你查一下MySQL的手册,关于mysql_real_connect一段:CLIENT_MULTI_RESULTS Tell the server that the client can handle multiple result sets from multiple-statement executions. This is automatically set if CLIENT_MULTI_STATEMENTS is set. See the note following this table for more information about this flag. Added in MySQL 4.1. If you enable CLIENT_MULTI_STATEMENTS or CLIENT_MULTI_RESULTS, you should process the result for every call to mysql_query() or mysql_real_query() by using a loop that calls mysql_next_result() to determine whether there are more results. For an example, see Section 17.2.9, “C API Handling of Multiple Statement Execution”. 说实话,我也从来没有用过这个flag,所以不知道具体情况。
解决方案 »
- php+sql server2000连不上
- php动态生成并获得csv文件..........在线等十万火急啊!!!!!!!!!!!!!!!!!!
- 统计字符长度
- 问一个简单的问题
- 这样写正则表达式,怎么不行啊?$符号怎么匹配?
- 问个简单的关于URL的问题...
- 有没有广州的写程序团队?
- 现在要做一个新用户权限申请的流程,那位老大能给点建议呀?
- 请各位帮个忙,看看是出了什么问题(Supplied argument is not a valid MySQL result resource in ...)
- 一个问题:)
- 提示mcrypt_module_open不能识别
- 一个有关外部js代码调用的问题,php的
在使用存储过程的时候,传统的MYSQL系列函数,没有MYSQLI好用.
你可以看看mysql手册里的mysql_real_connect()
CLIENT_MULTI_RESULTS 通知服务器,客户端能够处理来自多语句执行或存储程序的多个结果集。如果设置了CLIENT_MULTI_STATEMENTS,将自动设置它。
因为php里未予定义该常量,因此需要自己定义。