Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7662497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:49:03+00:00 2026-05-31T13:49:03+00:00

I am working on a notification system on my website for users. I have

  • 0

I am working on a notification system on my website for users. I have a table for “events” that a user is notified of when they happen (friend requests, new followers, comments, etc.). Is there a way to insert a value like say 0 for unread and 1 for read in the //read column of the events table, for a particular event (upon request of the information by the user)? So that it is no longer notification worthy?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:49:04+00:00Added an answer on May 31, 2026 at 1:49 pm

    Yep. Just store your column as TINYINT(1). The MySQL literal TRUE evaluates to 1 and FALSE evaluates to 0, as expected.

    (This is assuming your events table stores the individual events that get assigned to users, not the general event types that can occur.)

    Usage

    SELECT * FROM events WHERE user_id = [user_id] AND read = 0    #list all for user
    UPDATE events SET read = 1 WHERE event_id = [event_id]         #mark as read
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a system that allows users to reply to notification emails
I have developed push notification system in android using c2dm, It's working fine but
Possible Duplicate: javascript: pause setTimeout(); Im using jQuery and working on a notification system
I'm working on a messaging/notification system for our products. Basic requirements are: Fire and
I am working on a simple notification service that will be used to deliver
I'm working on a website powered by .NET asp/C# code. The clients require that
I am working on a WinForms application and have to show the Application Icon(Notification
On an x86 system, I have a Linux kernel module (watcher module) that gets
I have got push notification working but the next thing I want to do
I have the following code to download a file in the notification system. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.