Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 107,710 PHP Programmers for FREE! Ask your question and get quick answers from experts. There are 1,113 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



do not show rows in table when selected

 
Reply to this topicStart new topic

do not show rows in table when selected

dilemmalurve
post 15 Jul, 2008 - 11:06 PM
Post #1


New D.I.C Head

*
Joined: 22 Jun, 2008
Posts: 16


My Contributions


Hi to all,
i have a question. For example Susan has chosen a contest called ABC, so after that when she returns to the page where it contains all the contest, i do not want ABC to appear in the table. I do not want to use delete statement. Please give me some advices. thank you. biggrin.gif

sincerely,
gina
User is offlineProfile CardPM

Go to the top of the page


Martyr2
post 15 Jul, 2008 - 11:14 PM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 4,273



Thanked 72 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


There are a couple of ways you could do this. You could use session variables which you set each time they enter the content. Then when she returns to the page listing the contests, it would check her session variables and see if any contests have been visited and not to display those.

The second way is similar to the first but instead of sessions you could use cookies. These are little bit less reliable than sessions, but again you would record any contests she entered into a cookie file on the user's computer and check that file when it comes to listing the contests again. Then you have that page not list any contests found in the cookie.

The third way is (if this is a database project) to simply record the user's identity (whether it be their IP, their account if they have one etc) and the ID of the contest they visited. Then have PHP simply list any contests that the user doesn't already have listed for their account in the database.

Link to Sessions information in PHP

Link to Cookies information in PHP

Hope this helps. smile.gif
User is offlineProfile CardPM

Go to the top of the page

dilemmalurve
post 15 Jul, 2008 - 11:38 PM
Post #3


New D.I.C Head

*
Joined: 22 Jun, 2008
Posts: 16


My Contributions


WOW thanks. I tried to google on dont show selected /hide selected /select only unselected. HAHA. i guess session will be the best answer. Shall work on it ,thanks. (:

gina
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/30/08 03:12AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month