Click here to Skip to main content
16,012,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created an stored procedure in mysql ..

delimiter
create procedure inserttbl()

begin

insert into username(userName,pass) values('manohar',123);

end
delimiter ;



now i want to use(execute or call) this procedure from my php script

how can i call this ?

i use this code for this ....

mysqli_prepare($con,"call inserttbl()") or die(mysqli_error());

but it's not working
Posted
Updated 5-Dec-13 20:06pm
v2

1 solution

 
Share this answer
 
v2
Comments
GDdixit 6-Dec-13 2:28am    
it's not understandabl to me , i am new in php ,
the link you give here , in this link he is using 'CALL' function .. but it give nothing in my case .. i tried

'CALL inserttbl()';
[no name] 6-Dec-13 2:31am    
Ok Check this one
http://stackoverflow.com/questions/3966747/how-to-call-store-procedure-in-mysql-using-php-and-display-the-value-return-by-t
GDdixit 6-Dec-13 2:51am    
yes thank you dude ... it's work fine ;)
[no name] 6-Dec-13 2:35am    
Please check the updated solution..Hope it will help you..
[no name] 6-Dec-13 2:52am    
Glad to help..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900