All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,MVC+LINQ开发一个图书销售站点(2)-对象及其关系_[Asp.Net教程]
利用C#创建,IIS,站点并设置.NET,Framework版本为ASP.NET,2.0,的方法,二_[Asp.Net教程]
教程:如何实现ASP.NET网站个性化_.net资料_编程技术
精华:AJAX开发简略(第一部分)_[AJAX教程]
C#中GroupBox控件应用实例
C#中ImageList组件应用实例
Apche,+,MySQL,+,PHP整合安装脚本_php资料_编程技术
C#提交数据到服务器并返回的处理_.net资料_编程技术
利用Rational对.NET程序进行建模_.net资料_编程技术
一个简单例子教你揭开AJAX神秘面纱_[AJAX教程]
Reading number is top 10 pictures
BingBingFan apple dew point photo gallery2
Sell the barbecue as says father du breul3
妹子最好别玩单反
The money of more than 100 countries and regions19
人物写真-谢楠
Get girl by your hand
Beautiful vacuum girl2
奇趣的世界记录2
Azusa Yamamoto1
怀春少女-石一伊
Download software ranking
Boxer's Top ten classic battle7
Tram sex maniac 2 (H) rar bag11
Such love down(擒爱记)
XML+Web+Service开发教程
JSP+Ajax Web development typical examples
Unix video tutorial2
Tram sex maniac 2 (H) rar bag18
Kung fu panda - the secret of the teacher
Ashlynn Video5
Boxer's Top ten classic battle10
r>';
echo $line;
printf("\n");

}
mysql_free_result($result);
?>

mysql_close($link);
?>



aaa published in(发表于) 2013/12/27 19:53:37 Edit(编辑)
php调用存储过程返回结果集_php资料_编程技术

php调用存储过程返回结果集_php资料_编程技术

php调用存储过程返回结果集_php资料_编程技术-你的首页-uuhomepage.com

  php调用存储过程返回结果集,解决can't return a result set in the given context错误的方法需要php调用存储过程,返回一个结果集,发现很困难,找了半天,终于在老外的论坛上找到解决方案,这里本地化一下。

关键就是两点

1)define('CLIENT_MULTI_RESULTS', 131072);

2)$link = mysql_connect("127.0.0.1", "root", "",1,CLIENT_MULTI_RESULTS) or die("Could not connect: ".mysql_error());

下面就可以正常使用了,以下是例子程序。

define('CLIENT_MULTI_RESULTS', 131072);

$link = mysql_connect("127.0.0.1", "root", "",1,CLIENT_MULTI_RESULTS) or die("Could not connect: ".mysql_error());
mysql_select_db("vs") or die("Could not select database");
?>

$result = mysql_query("call get_news_from_class_id(2)") or die("Query failed:" .mysql_error());
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$line = '

'.$row["title"].'('.$row["page_time"].')'.'


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.