query($query); $query1 = 'SELECT @phone'; $result = $c"/> query($query); $query1 = 'SELECT @phone'; $result = $c">
Home > Backend Development > PHP Tutorial > PHP 怎么获取存储过程的返回值

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

WBOY
Release: 2016-06-13 12:38:46
Original
1001 people have browsed it

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 />
Copy after login

$result->num_rows 返回是1

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template