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 6195377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:27:30+00:00 2026-05-24T03:27:30+00:00

I have been thinking of implementing a PHP messaging system on my site. Would

  • 0

I have been thinking of implementing a PHP messaging system on my site. Would like to know pros and cons of my following suggestion.

Many sites I noticed like spareroom.co.uk, easyroommate.com, oasis.com, facebook etc you can login and message users/profiles. So for user to send messages they have to login to my site then enter msg into textarea which I store it in a MYSQL db table. The recipient user then receives a real email to hotmail/gmail notifying him to go to my site & login and check their messages and they can then reply/send on my site only.

My messaging table will be like:

sender email address (varchar)(50)
sender advert id (varchar)(7)
sender message (text)
recipient email address (varchar)(50)
recipient advert id (varchar)(7)

So each message sent from sender/recipient would be a new record

I already have 3 other tables in my db (this being 4th). I will automatically delete messages after say 7 days. Hopefully this will get users coming back to my site and using it. I know it will use bandwidth but it will ensure my site is being used and users are receiving email messages as my email server seems to go their real email providers spam/junk mail box.

Questions:

1)Is it good idea to have a db with loads of records but few fields?

2)Is there any pros/cons to this suggestion?

3)Do sites using PHP implement their message systems in a similar sort of way?

Cheers,
daza166

  • 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-24T03:27:31+00:00Added an answer on May 24, 2026 at 3:27 am

    When I set up a database I never care about the number of fields of a particular table. Somethimes it is necessary to only store an information that something is locked, so I use a table with only one field. Sometimes I need to know if an item with a particular property already has been created, so I store only the property in a separate table an perform a lookup over all entries to find whether this property is already in use or not.

    From the point of performance or best practice: You approach is in any way the right one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been thinking quite a bit here lately about screen scraping and what
I have been thinking of maybe writing a little tool that logs into SO
I am after so advice really. I have been thinking about a client server
Ok, have a bunch of questions that I have been thinking about the past
I have recently been thinking about the difference between the two ways of defining
I've been thinking about the number of projects we have in-house that are still
I've been thinking about this problem for a while and have yet to come
I've been thinking of ways of providing syntactic sugar for a framework I have
I've been thinking about software estimation lately, and I have a bunch of questions
I have been thinking for a good while about how to tackle the problem

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.