Topic: Adding completely New Pages (Read 2164 times)
OMG!I am geek
Posts: 55
366 credits Members referred : 0
« on: Aug 30, 2006, 01:00:00 am »
Hi Olaf
What would need to be added to a completely new PHP page, within the <?php section of the page header, so that it has access to the database? Does it just need to include the Access User Class.php?
so I want to create a php file that is only accessible from an Admin account...is this the test_user_access.php file?
Thanks gman
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Aug 30, 2006, 08:33:26 am »
Sorry gman I can't follow you, please explain further (maybe you have already a live example and in addition you tell us your needs)
OMG!I am geek
Posts: 55
366 credits Members referred : 0
« Reply #2 on: Aug 30, 2006, 11:33:45 am »
Hi Olaf
I am using your wonderful Access class and I am trying to expand upon this by adding a new web page....say ADMINS.php. In order for it to be tied in with the rest of the access class files, what do I need to add at the top of HTML within the PHP tags to do that? Would I just include the "INCLUDE..." statement for the ACCESS_CLASS.
I want to make sure that only Admins have access to this page but also want to make sure that I stay connected to the database which I am assuming I would if I am logging into the access class...no examples yet
Hope this is better
Thanks
OMG!I am geek
Posts: 55
366 credits Members referred : 0
« Reply #3 on: Aug 30, 2006, 11:36:05 am »
Do I also need to add reference to this ADMIN.php page to the DB_CONFIG.php file? or anywhere else?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Aug 30, 2006, 11:38:26 am »
check the code at the top of the admin example: admin_user.php (starting after the last bracket of the extension...) and check the manual there is also a note about this example...
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
you are using an advanced php script while you don't have enough knowledge in php/mysql... do yourself a favor and learn a little bit about this powerfull scripting language
OMG!I am geek
Posts: 55
366 credits Members referred : 0
« Reply #6 on: Aug 30, 2006, 11:52:58 am »
Thanks Olaf..I appreciate the links...so far, it has been working pretty good. I realize I need to learn more but I love to play...it is more fun...
See ya gman
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374