php 查询mysql 多次查询报错Commands out of sync; you can't run this command now

多次查询报错 Commands out of sync; you can't run this command now

解决方案:

使用

mulity_query()

最小化写法

do
{
    result = mysql_store_result( mysql );
    mysql_free_result(result);
}while( !mysql_next_result( mysql ) );

posted @ 2015-12-22 15:24  倾其一生  阅读(474)  评论(0编辑  收藏  举报