Edit, Add and Delete: PHPMyAdmin, Administrators login @ web site or Excel?

Hi,

I’ve just installed MySQL to my MAC computer and was expecting database software like MS Excel. It seems it might not be that easy/intuitive however!:x

From what I can work out it is not easy to view the database and edit it, add or delete entries.

The three ways I have discovered are:

  1. PHP MyAdmin.
  2. Create login and edit, add and delete forms at web site.
  3. Download database using Excel, edit it, add or delete entries then upload it.

Am I correct in pursuing these three concepts when designing the web site? Or are there easier methods?:confused:

Thanks,

Matt.

using phpmyadmin is sufficient for all your database access/update requirements

Would you agree a MySQL login at the web site is the best way to ‘view a database’?

For example, web page asks users to enter their username and password. If, when they click submit, the password matches their username it displays the tables that user will want to view.

This is quicker than PHP MyAdmin, right? And particularly if they are out of the office?

Matt.

for users, it should be the ~only~ way

users should never, ever be given a tool like phpmyadmin

Regarding the basics of editing, can you advise on the LIVE purchasing environment?

I know some companies use databases of stock holdings of each product. Then if there is 1 or greater than one in stock the web site says “IN STOCK - BUY NOW” otherwise it says “OUT OF STOCK”.

My issue is say products Jacket, Sports bag and Calculator were showing say 20 of each in stock but then there was a delivery to the warehouse of a 100 of each how do these new figures get added to the stock holding?

  1. If Excel was used and between the time of downloading and uploading the amendments one or more were purchased the upload would overwrite the fact that there were some sales whilst the file was being edited?

  2. If (and I’m not sure it is possible) PHP MyAdmin was used, since there is no visible table of entries, if there were 100 different products to change quantity for it may take some time remembering the unique ID or where abouts I may locate it.

  3. If you use a login at the web site, you need a method of fishing out and updating the relevant entries.

No way seems ‘worth doing’ but companies like Amazon, etc. have no problem keeping this info up to date. Am I missing a trick?

Matt.

by an application interface that you would build, which allows you, the site administrator, to update the relevant columns in the product table

  1. If Excel was used and between the time of downloading and uploading the amendments one or more were purchased the upload would overwrite the fact that there were some sales whilst the file was being edited?
    sounds like you are quickly coming up to speed on the dangers of using excel to perform updates
  1. If (and I’m not sure it is possible) PHP MyAdmin was used, since there is no visible table of entries, if there were 100 different products to change quantity for it may take some time remembering the unique ID or where abouts I may locate it.
    you would obviously need to use a product key which is used not only in your database table, but also in the incoming data feed

and i’m not sure why you think there is no visible table of entries

You are confusing database management system with a database user interface - in every database management system you have to build an interface to prevent the user working with the actual raw tables, if you want a sensible, safer system. Ever seen oracle at the command line for example? MySQL is just the same.

How you build your user interface to MySQL is up to you; most people use PHP to present the data the way they want it displayed in a web browser. You could use Access to interface with MySQL from a desktop within a company (works quite well, also works well with oracle). The point about the user interface is that YOU control what you will let the user do and see. phpMyAdmin gives the users way too much power, and you have almost no control over what havoc they can wreck on your database. The database administrator for your system should be the only one who gets to play with phpmyadmin, or any similar tool.

PS Excel is a spreadsheet, a calculating device, not a database, although many people use its column layout to simulate a database.