websoft08 Posted May 30, 2008 Share Posted May 30, 2008 All I do is read pros and cons for both prepared statements and stored procedures, what I want to do is combine the best of each by using a) Prepared statements for their security against SQL Injection b) Call a Stored Procedure for their increase in speed efficiency. The problem is I have no idea how to combine them together & I don't see anything good on the web that answers this. Are you supposed to put the whole prepared statement into the stored procedure or are you supposed to write the stored procedure with all the fields and then use the prepared statement which calls the stored procedure and substitute the parameters with ? , ?, ? I can't figure it out! Please someone give me an example of a Stored Procedure AND a Prepared Statement that calls that stored procedure. Thanks!!!! Link to comment https://forums.phpfreaks.com/topic/108051-how-do-you-write-a-prepared-statement-with-a-stored-procedure/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.