The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End function in php Re: function in php


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.