Welcome Guest, Not a member yet? Register   Sign In
Inserting data for each user
#1

[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.


Messages In This Thread
Inserting data for each user - by El Forum - 07-09-2011, 11:45 PM
Inserting data for each user - by El Forum - 07-10-2011, 04:17 AM
Inserting data for each user - by El Forum - 07-10-2011, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB