User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 391,712 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,405 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 1861 | Replies: 1
Reply
Join Date: Jul 2005
Posts: 6
Reputation: escolta is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
escolta escolta is offline Offline
Newbie Poster

Help help pleaseee! probl with username and passwd when updating mysql database

  #1  
Aug 2nd, 2005
have a ver big problem, im new to mysql...and i been thinking of ways of solving it....but dont know how....

i have an excel list with 200 people, so what i do is convert the excel file to mysql, using a $24.90 sofware.....once i have the mysql databse
i add the column username and Password, so each people can access through a php login page enternig their username and a password and see their information in the database...

The excel list changes every 15 days...all the fields!...so the problem is the fact that this excel sheet does not comes with a username and password column....and since they may be more or less people on it user information will not correspond to the username and password rows that on the db

well, i dont know if im explaining this...

any ideas at all on how to solve this??....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Posts: 28
Reputation: proghelper is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
proghelper proghelper is offline Offline
Light Poster

Re: help pleaseee! probl with username and passwd when updating mysql database

  #2  
Aug 3rd, 2005
First of all, you do not need $24 software to change Excel to MySql, you could have written a simple script to do this.

Anyway, you need to have some logical programming to get around this problem. Basically when you get the new file, for each entry, you have to check if the entry is already there in the database and then update only the changed fields if it is already there.

If it is a new entry, you can create a new row in the databse for that new entry.

I think the problem you have now is that you try to recreate the database each time you get a new file. Rather you have to keep the same database and update it.

--------------------------
Programming ( Assignment / Project ) Help
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 3:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC