[eluser]Unknown[/eluser]
Hey guys, i have a quick question.
I am writing an application, and part of it requires me to be able to send mass pm to each user.
The way pm system works is by splitting a message into 2 parts, part A consisting of pm id, message id, which user it is for and whether its read or not. Part B actually consists of the message, subject time etc. (Part A and B are stored in separate tables)
Now i am doing mass pm system that admins can use, so what ive got so far is that when a mass pm is sent it creates 1 B messages and what i want to do is send each user an A message. I know i can do a foreach loop and then insert data for each user but i am wondering if there is a quicker and more efficient way to insert the date for each user.