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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:08:38+00:00 2026-06-08T18:08:38+00:00

I am creating a ticket system for issues regarding IT. I have the following

  • 0

I am creating a ticket system for issues regarding IT. I have the following table:

id                          
userID                                  
priority                                        
details                              
rank                                
conversation                                
order                                   
status                                  
ts

What I need is to be able to display the back and forth between the IT dept and the user as a conversation. So i figure I have the two columns conversation and order. The column conversation would be a unique identifier (number or text) and the order would show the order that the row plays in the converstation (1,2,3 etc).

My question is this:

  1. Is this the best way to go about it?
  2. how shall I identify each conversation?

I could either generate random PHP 5 char text or something, or give a number, and each user has conversation number 1, number 2 etc. But then If I did that, how would I find out the next number to use for the user using mySQL?

Any thoughts and suggestions would be helpful, thank you.

  • 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-06-08T18:08:39+00:00Added an answer on June 8, 2026 at 6:08 pm

    I’d go for a separate table like @Debock mentioned. I’d structure it a bit differently though:

    create table ticket_conversation (
        id                     int not null auto_increment primary key
    ,   ticket_id              int not null
    ,   user_id                int not null
    ,   conversation_text      text
    ,   conversation_timestamp timestamp default current_timestamp
    ,   foreign key ticket_id references ticket(id) 
    ,   foreign key user_id references user(id)
    ,   key(ticked_id, conversation_timestamp)
    )
    

    The timestamp allows you to keep track of when the comment was made, and ordering by it will give you the sequence of comments.

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

Sidebar

Related Questions

I am creating an app that is a ticket sales system. On the checkout
I'm having a few problems creating a SQL Query. I have the following tables:
I have the following issue: I want to display Tickets from a helpdesk system
I am creating a ticket system for learning purposes, and I was wondering how
I have a form that a user would fill out while creating a ticket
compliment of the day. Based on the previous feedback received, After creating a Ticket
I want to create a small helpdesk ticket control system at work, that would
I have thought some time about creating a PHP-based customer-service thingy that assigns different
We are creating a system in Ruby on Rails and we want to be
I have this issue with Core Data. I am creating a core-data-based application, for

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.