•
•
•
•
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
![]() |
•
•
Join Date: Jul 2005
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
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??....
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??....
•
•
Join Date: Jun 2005
Posts: 28
Reputation:
Rep Power: 4
Solved Threads: 0
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
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
- Please help me in connecting JSP to MySql (JSP)
- writitng data from php to mysql (PHP)
- MySql connection question. (Java)
- insert csv file into mysql through php (PHP)
- MySql Labyrinth (MySQL)
- MySQL drivers not loading? (Java)
- php mysql help (PHP)
Other Threads in the MySQL Forum
- Previous Thread: Problem w/ LIMIT in CASE statement
- Next Thread: templates..source codes....HELP!


Linear Mode