28, May 2012

Adding completely New Pages - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Adding completely New Pages
« previous next »
Pages: [1] Print

Author 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: Male
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: Male
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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 30, 2006, 11:42:09 am »

and finally you need to learn this basics:
http://nl3.php.net/define
http://nl3.php.net/include/
http://nl3.php.net/class
http://nl3.php.net/mysql

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 Wink

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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Aug 30, 2006, 12:06:44 pm »

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
Yes playing arround is not bad, but learning the basics will let you understand how it works...

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #8 on: Aug 30, 2006, 12:12:46 pm »

Quote
Yes playing arround is not bad, but learning the basics will let you understand how it works...

And this is the way to stay with it. Otherwise it is easy to get bored and leave it

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Aug 30, 2006, 12:16:11 pm »



And this is the way to stay with it. Otherwise it is easy to get bored and leave it
thanks Nick...

OMG!I am geek
**
Posts: 55
366 credits
Members referred : 0


« Reply #10 on: Aug 30, 2006, 12:41:37 pm »

Thanks guys..I appreciate it
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3885
Tags : php html databases Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Adding completely New Pages
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:32:53 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.