手记

PHP 调用存储过程

<?php

$conn = mysql_connect('localhost','root','');

mysql_select_db('dbname',$conn);

mysql_query("call pro2(2,@uname)");

$query = mysql_query('select @uname');

$row = mysql_fetch_row($query);

print_r($row);


?>


0人推荐
随时随地看视频
慕课网APP