query($query); $query1 = 'SELECT @phone'; $result = $co"/> query($query); $query1 = 'SELECT @phone'; $result = $co">

Home  >  Article  >  Backend Development  >  PHP 怎么获取存储过程的返回值

PHP 怎么获取存储过程的返回值

WBOY
WBOYOriginal
2016-06-13 11:33:33896browse

PHP 如何获取存储过程的返回值

	$query = "CALL T_PROCEDURE_GETPHONE($pid,@phone)";<br />		$conn->query($query);<br />		$query1 = 'SELECT @phone';<br />		$result = $conn->query($query1);<br /><br />		$rr = $result->fetch_row();<br /><br />

$result->num_rows   返回是1

而且用cmd 来调用函数, 返回的是有号码的.
但是在PHP中,返回的就什么都没有了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn