I have a PHP page that gets 58 variables from a post and passes those to a MySQL (5.1) stored procedure that has the exact parameters in the same position as the post parameters.
I can get the _POST parameters one-by-one and make a parameter string to call the stored procedure, but now that is another place to have to change code when the vialriables change (and they often do.) Isn't there some way just to bind the _POST[*] array to with something like
That particular code does not work, but it would make my life SO much easier if it did. I can't find a way to make it happen. Is there a way to do this? I have mysql, msqli and pdo loaded in PHP 5.1.6 with MySQL 5.1.53-MariaDB.
Is there something I can do without hard-coding all the post string variables into PHP?