Forums » General Discussion

Thread: Hide record (nor delete, or move to other table) + hide it after given time

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: Mar 1, 2011 6:17 AM by: Yasawas
Yasawas


Posts: 2
Registered: 2/28/11
Hide record (nor delete, or move to other table) + hide it after given time
Posted: Feb 28, 2011 1:41 PM
 
  Click to reply to this thread Reply

Hi,

I suppose this is very simple to do, but since i'm kinda newbie in PHP (btw, Toad is very nice platform), so i'll explain it quickly:

The practical example:
The user must be able to "switch on/off" a certain record (in this case, it's a news article with images) in a table so it may appear (or not) on a certain page.
It has also to "file/hide" itself after a given time (in this case, 15 days, counting from the last update/insert).
 
I think this can be done when inserting/updating a record - with a extra checkbox on that form or something alike -, but i don't know how to do it. It is important that the record itself won't be deleted, only hidden from "public" view, and of course, able to be switched"on" again.
 This way, i could dump a non-sequential (1, 3, 4, 6, 7, 9) recordset into a page (thus showing only the "on/active" articles).

The second option, well, blows me, i have no idea, and YES, i've searched a LOT.. :P

It would be of course VERY NICE if i could do all this right in TOAD. (yay!)


Thank you!

PP


Guest
Re: Hide record (nor delete, or move to other table) + hide it after given time
Posted: Feb 28, 2011 1:45 PM   in response to: Yasawas
  Click to reply to this thread Reply

Well you obviously need to write the application to actually show or hide the article in PHP.

You can certainly modify your table to provide the columns to do this to your table using Toad. Just do alter table on the table you have in the object explorer.


Yasawas


Posts: 2
Registered: 2/28/11
Re: Hide record (nor delete, or move to other table) + hide it after given time
Posted: Mar 1, 2011 6:17 AM   in response to: Guest
 
  Click to reply to this thread Reply


Well obviously, the "i don't know how to do it" part wasn't read.

It was, indeed, very helpful..


Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums