hi all
i am making a new website for my floorball team and i want to enable some administrators to insert and edit news... after a while i discovered that i had twodifferent .php files doing almost the same thing. the only diff. was that one handled website news and one handled news about the club.
instad of having it that way, i made one file which, att he beginnig, checks what kind of news the admin. wants to insert or edit. based on that i set a variable ($functionName) to either Club or Website. the reason for this being that i have one set of functions named dbInsertClubNews etc. and one set called dbInsertWebsiteNews etc.
since the only thing that differs the functionnames apart is the text i store in $functionName, I want to merge dbInsert with $functionName and then add News at the end.
I have checked variable variables but couldn't get it to work... grateful for any help.
/Folbert