Forum Moderators: open
A. List the messages by making two queries; one for the user information and one for the message information.
B. Save the necessary user information (name, id, link to image) in the message table along with the message
or
C. Completely rethink my methodology on how to store message data?
Thanks
-Doc
user
id
name
image
message
id
id_user_send
id_user_rec
timesent
message_text
Then you use join queries to get the info you need. I guess this is like you were saying with option A. But you don't necessarily need to make two queries to get both the user and message info if you use a JOIN.
[dev.mysql.com...]