thinkphp貌似不能直接调用存储过程,要用原生的方法。
代码如下:
$userInfo_proc = "call proc_get_userinfo_details(".$data['userid'].",''); ";//传了个参数
$res = mysql_query($userInfo_proc);//执行存储过程
$res = mysql_fetch_assoc($res);
thinkphp貌似不能直接调用存储过程,要用原生的方法。
代码如下:
$userInfo_proc = "call proc_get_userinfo_details(".$data['userid'].",''); ";//传了个参数
$res = mysql_query($userInfo_proc);//执行存储过程
$res = mysql_fetch_assoc($res);