TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-22-2009, 12:47 PM   #1 (permalink)
The Wanderer
 
Join Date: Jun 2009
Posts: 11
Thanks: 4
dodgeqwe is on a distinguished road
Default suggestion on library management project

hi every one,

im planning to do a library management project on PHP.Please provide me some good practices on coding, database as this is my first big project and im a newbie.

im planning to do two websites for libmgmnt, one admin website hosted on librarians system and all other system loaded with member website.is it a bad idea?? or should i combine into one site and provide both admin login and member login in the homepage.

should i store username and password only in a seperate table (say login table with two fields username and pwd) or complete details of registration including username and pwd in one table??please suggest me the good method.

Thankyou
dodgeqwe is offline  
Reply With Quote
Old 06-22-2009, 01:41 PM   #2 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Well thats mainly up to yourself. Some people like it seperate (especially in large organisations) and some don't.

Peronally I don't like get it too seperate. That just means extra work while (in not so big organisations) it's not that important. As for the login table, yes I would suggest keeping the login and his profile appart. Login credentials are different than profile information.

But everyone has a different view of this subject though.
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 06-25-2009, 05:21 AM   #3 (permalink)
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

I didn't put too much time into my list so it's basic.

users table
---
id
username
email
password
last_login
date_registered
role_id

roles
-----
id
role_name
role_level
Basically, you get your user table and then a secondary roles table. A user can only have a single role but presumably a user with a higher level can do more things, with Admin's being the highest.

Or you could have a little table containing Admin usernames/emails and whenever someone goes to the Admin login page, it'll cross check that table. It depends on the number of differing role levels. You might want only visitors who can't do anything but view unless they login, members can favorite things, maybe, moderators could help fix book labeling problems but not add new books and finally admins could do everything.
__________________
blog twitter ifupdown
ryanmr is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Management Software/Script CMellor The Lounge 8 06-21-2011 04:36 AM
Project Management System Ryzie The Lounge 6 06-21-2009 10:59 AM
Planning your project Village Idiot Absolute Beginners 13 06-17-2009 02:46 PM
Management of this project Village Idiot TalkPHP Developer Team 1 01-01-2009 07:49 AM
Freelance Suite: Client & Project Management Software CLCook Show Off 2 09-14-2008 10:50 AM


All times are GMT. The time now is 10:27 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design