Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-24-2007, 12:31 PM   PM User | #1
CstAn
Regular Coder

 
Join Date: Nov 2005
Posts: 148
Thanks: 1
Thanked 0 Times in 0 Posts
CstAn is an unknown quantity at this point
Need some idea about CMS.

Dear all,

How/ which way should i develop for the system setup (delete function) function for the CMS?

currently, i set the status for data to disabled so that the data wouldn't display to user.

the way i develop because:
we can't direct delete from database because of audit purpose & some time we can prove to user he/she had accident deleted the data.

for you all, isn't done the same way with me?? Or other way??

isn't had a standard way to developed it??

Isn't we can direct block the delete function if the data linked/used to/by other function? Or depended?

I m a new programmer with 8 month working experience.

thanks.
CstAn is offline   Reply With Quote
Old 03-24-2007, 09:18 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
I might not be understanding the question, but here's my thoughts anyhow ...

I assume you're using MySQL as your database and the content is text
or something that is stored as blocks with some sort of ID (date, whatever).

Add another field in the database table for "enable". That way, you keep
the block of content, but enable or disable from view. It can stay retained
for audit purposes and simply remain invisible.
mlseim is offline   Reply With Quote
Old 03-25-2007, 10:50 AM   PM User | #3
CstAn
Regular Coder

 
Join Date: Nov 2005
Posts: 148
Thanks: 1
Thanked 0 Times in 0 Posts
CstAn is an unknown quantity at this point
Quote:
Originally Posted by mlseim View Post
I might not be understanding the question, but here's my thoughts anyhow ...

I assume you're using MySQL as your database and the content is text
or something that is stored as blocks with some sort of ID (date, whatever).

Add another field in the database table for "enable". That way, you keep
the block of content, but enable or disable from view. It can stay retained
for audit purposes and simply remain invisible.
this what i done now.

How about if the data had link to other?
We can direct block the delete function for user?

If we not block, user delete the data, and caused the data linked may not display.

what should i done on it?? direct block it?

But if i done the method, it may cause slow of loading of the pages. Cause need a lot of checking on it.

i m using PHP and MySQL database.
CstAn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:41 PM.


Advertisement
Log in to turn off these ads.