DaaL1973
Založený: 09.12.2007
Príspevky: 7
Zaslal: 2008-09-11 12:59
Návrat hore
Odpovedať s citátom
|
I have multiple users on my db, each has their own php page, most have the same set of Field Defs, which i occasionally have to edit and repeat for each user, can i put the Field Defs in a separate file and include the file into each users php?
I have tried using the include_once option, but this gives html jibberish, I think this is because it includes the file AFTER the call to phpmyedit.class.
any way to do this? thanks.
|
DaaL1973
Založený: 09.12.2007
Príspevky: 7
Zaslal: 2008-09-16 15:35
Návrat hore
Odpovedať s citátom
|
to answer my own question..
the problem was i had just cut the field defs from the user.php file and copied it straight in to a fieldDefs.inc file, the solution was to enclose the text in the new fieldDefs.inc file in <*php ... *> tags, works a treat now.
I now have a user.php file for each user (user01.php etc..) which has their individual login details, and then includes the users_options.inc and users_fieldDefs.inc, so any changes to options or field defs can be made for all users by just changing the one file, schweet!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|