好吧,讓我再試一次。Mysql存儲過程,其中子句
query(「CALL getemployee('$ eml')」); $ result = $ sql-> fetch_array(); ? > 這是我的存儲過程:
Delimiter //
Create procedure getemployee(in eml varchar(50))
Begin
Select * from employees where email = eml;
End//
Delimiter ;
的錯誤,我從瀏覽器中得到: 「致命錯誤:調用一個成員函數fetch_array()一個非對象...」。
我用phpmyadmin版本3.2.4和MySQL客戶端版本5.1.41
顯示你的PHP代碼將使其更容易幫助。 – acrosman 2010-04-16 20:37:35
我沒有看到'eml'在你的程序中被聲明或設置的位置。 – Thomas 2010-04-16 20:38:32