I am in the process of learning PHP with JS and Ajax and have the foll. problems. I have created a class to generate master data entry screens.
(2) All the user will have to do is define the parameters for the class as in users1.php and the screen will be ready in a jiffy. But I have ended up "including" this users1.php in showdata.php which is not correct as showdata.php is a general file which will be used for all future screens. Please tell me what the correct method to do this is. It ought to have been in users.php or something.
I have shown here the minimum code just to demonstrate the problem I am facing. Any help would be appreciated. Thanks in advance!
P.S. I have the foll. files : master.class.php, users.php, users1.php,showdata.php, script.js