Tags
call mysql stored procedure, can't return a result set in the given context, mysql problem, php mysql, php problem
Saya mencoba memanggil mysql stored procedure melalui PHP dengan kode berikut;
$query = "CALL sp_sample ('param')"; $result=mysql_query($query) or die(mysql_error()); $rows=mysql_fetch_array($result); echo $rows['column'];
Ternyata kode tersebut menghasilkan error seperti berikut;
PROCEDURE db_name.sp_sample can't return a result set in the given context