<p class="sougouContent"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code"> $query = "CALL T_PROCEDURE_GETPHONE($pid,@phone)"; $conn->query($query); $query1 = 'SELECT @phone'; $result = $conn->query($query1); $rr = $result->fetch_row();</pre><div class="contentsignin">로그인 후 복사</div></div> <br /> $result->num_rows 返回是1 <br /> <br /> 而且用cmd 来调用函数, 返回的是有号码的. <br /> 但是在PHP中,返回的就什么都没有了 </p> <br /> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> $result->num_rows 返回是1 说明有一条记录 </p> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">echo $rr[0];</pre><div class="contentsignin">로그인 후 복사</div></div> </p>