Current location: Hot Scripts Forums » Programming Languages » PHP » Login script for MySQL db


Login script for MySQL db

Reply
  #1 (permalink)  
Old 07-29-04, 07:54 AM
conundrum conundrum is offline
New Member
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Login script for MySQL db

Hi all!

I'm new to PHP and i need to write a login script in PHP for a website. It should do the following: when a user enters correct login and password an appropriate table with data will be displayed. One MySQL database will contain a number of data tables, each table is only meant to be seen by one particular user. In other words, one user will be able to view only the table that was created specifically for that user with their login and password.

Does anyone know where to get information and/or tutorials that explain how to do what i've described above?

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-29-04, 09:35 AM
jrcarr jrcarr is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Arkansas
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Try this tutorial: http://www.phpfreaks.com/tutorials/40/0.php It is the one I used to create the login script for my site at: http://www.carrscorner.net When a website owner logs in, they are given only their site information to edit and don't have access to be able to edit anyone else's site. I have modified a little from the original design included in the tutorial with some session additions. However, everyones information is in a single table and when the user has logged in are only given their info from that table. Otherwise it could be possible to end up with 100's or 1000's of tables if the site were to get really popular. I am unsure what the limit is to the number of tables you can have, but I'm sure there is a limit.

Jack
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
upload script which copys image name in db marky7890 PHP 1 05-18-04 05:17 PM
login with db check using cases digital4twenty ASP 2 05-13-04 07:35 AM
login script cyberted Script Requests 2 05-06-04 01:57 AM
login script - a better way to die... timsnell PHP 5 04-06-04 11:43 AM


All times are GMT -5. The time now is 04:15 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.