gameznet
03-16-2010, 03:35 PM
Please forgive me I am very new to php and I have recently set up a simple admin area for a pet shop to update items in their oscommerce catalog.
the oscommerce admin area was way to scary and complex for the staff at the stores so I volunteered to make a simple admin area that they could add livestock such as puppies into.
there are 6 stores that each want to regulary add/remove and edit their livestock in the site.
I used dreamweaver to create a very simple admin area for them and I need help with 2 issues actually
The admin area simply uses a set of forms in 4 steps to enter the livestock data into 3 seperate tables. (final step is to view and edit)
My first problem is how I can ensure that if more than 1 user logs into this admin area there will not be issues with concurrency so I need a way to either lock out other users when the admin area is in use.
OR
implement something that allows multiple users to add/remove and edit entries without interfering with each other or corupting the data if thats possible.
second
on the 3rd step of entering in for example "a puppy", I have a textarea which is for the "product_description" which has the init value prefilled with a html template giving puppy and store information.
what I would like to do is make it so that when a "particular user" is on that step the prefilled information in that textarea has "that stores" details so they only have to do minor editing of the puppies details and not have to worry about their store information.
If a different user from a different store is logged in then that textarea will have their particular stores details prefilled depending on which user is entering the data.
so my 2 questions are:
1) how to ensure that no database issues occur if more than one person is trying to enter data at the same time
2) have a particular text area in step 3 of the forms populated automatically with a logged in stores particulars
Any help would be greatly apreciated.
the oscommerce admin area was way to scary and complex for the staff at the stores so I volunteered to make a simple admin area that they could add livestock such as puppies into.
there are 6 stores that each want to regulary add/remove and edit their livestock in the site.
I used dreamweaver to create a very simple admin area for them and I need help with 2 issues actually
The admin area simply uses a set of forms in 4 steps to enter the livestock data into 3 seperate tables. (final step is to view and edit)
My first problem is how I can ensure that if more than 1 user logs into this admin area there will not be issues with concurrency so I need a way to either lock out other users when the admin area is in use.
OR
implement something that allows multiple users to add/remove and edit entries without interfering with each other or corupting the data if thats possible.
second
on the 3rd step of entering in for example "a puppy", I have a textarea which is for the "product_description" which has the init value prefilled with a html template giving puppy and store information.
what I would like to do is make it so that when a "particular user" is on that step the prefilled information in that textarea has "that stores" details so they only have to do minor editing of the puppies details and not have to worry about their store information.
If a different user from a different store is logged in then that textarea will have their particular stores details prefilled depending on which user is entering the data.
so my 2 questions are:
1) how to ensure that no database issues occur if more than one person is trying to enter data at the same time
2) have a particular text area in step 3 of the forms populated automatically with a logged in stores particulars
Any help would be greatly apreciated.