我无法从我创建的存储过程中获得结果


I am not able to get result from stored procedure that i created

我已经在phpmyadmin中的例程下创建了存储过程

CREATE PROCEDURE getData()
BEGIN
    SELECT *
        FROM register;
END

我从php脚本调用它,如下

$result=mysql_query('CALL getData()');

但是我没有得到从存储过程返回的任何数据

我相信mysql_*API没有从存储过程中检索内容的代码。升级至mysqli_*API。