I am trying to build a website that contains forms that allow users to edit, view and delete records in mySQL tables. I have managed this. Now I want the user to be able to add new forms and tables, but I would need to be able to create functions with names based on elements in an array.
The code below doesn't work, but is there anything else that would?
for ($i=0;$i<count($tables);$i++) {
function $tables[$i][form]() {
}
// do something
}