Need help with converting a stored procedure into a php script

I’m needing to convert a mysql stored procedure into a stand alone php script. Anyone here ever done that?

The stored procedure consists of many define statements as well as general queries.

Please reply or pm.

I’ve worked with stored procedures. Even if you take the stored procedure and write php accomplish the same task, you’re still going to need queries to the database, so I wonder why you are doing what you’re doing. Stored procedures are meant to make very complex SQL faster.

I’m not sure why the need either. Its something that I’ve been asked to do for a project. There are define statements as well as other things that I’ve never really messed with before. If you’re cool with helping me out, can you send me a pm?