shreyaskudav Posted April 18, 2014 Share Posted April 18, 2014 (edited) CREATE PROCEDURE getID(IN username VARCHAR(50))BEGINSELECT idFROM usersWHERE username = username;END This is my stored procedure.. how to call it in my PHP code? Edited April 18, 2014 by shreyaskudav Link to comment Share on other sites More sharing options...
Ingolme Posted April 20, 2014 Share Posted April 20, 2014 Most likely something like this: SELECT getID('username') FROM users I'm not entirely sure if the FROM clause is required but you might be able to remove it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now