You are here: Re: Practical question on user / comment -system. « PHP Programming Language « IT news, forums, messages
Re: Practical question on user / comment -system.

Posted by Jasen Betts on 10/13/75 11:39

On 2006-02-07, frizzle <phpfrizzle@gmail.com> wrote:
> Hi there
>
> I've built this user management system, using PHP & mySQL, to manage
> users that can comment on a certain site. Users have to be logged in to
> comment. Below each comment is (how original) the date of
> commenting, and the author.
>
> If the user changes his name in his profile, it changes everywhere. So
> what i mean is that the user_id is saved together with the comment.
> When the comment is pulled out, the query also gets the user's name.
>
> My question:
> What is usually done with users deleted from the member system: this
> would lead to a blank name on every appearance of a deleted user's
> comment.
> Or how do i prevent the blank space, and still show the user's name?

Don't delete the user, mark them as inactive (or historical) instead.

you could do this by addin a boolean field for this info, to the users
table or by putting a certain value in the password field (etc...)

Bye.
Jasen

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация