Home › Forums › Back End › function in php › Re: function in php
January 21, 2013 at 8:43 am
#121736
margaux
Participant
No – the function as set up allows you to insert to the table ‘article’. You could broaden the function by accepting tablename as an additional argument. But you would have to change how the sql query is set up as well as ensure the fieldnames are coded correctly.
I agree with Traq’s original comment –
> A single function to handle all tables is not a good approach.