Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

abit of coding help

Asked Modified Viewed 1,829 times
B
blackfox101
B
  • Member, joined since
  • Contributed 82 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
asked
Member

Hi there people i have created a mod for the zwar system which allows me to send messages to all members automaticly when a war is added,

But i'm currently having some trouble with this.

i am having to hardcode it
dbquery("INSERT INTO ".$db_prefix."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('5','292','zwar','A New War Has Been Added. Please Visit The War Section. Zwar Message System!','".$smileys."','0','".time()."','0')");


for every member. Is there a way i can do this by sending it to a whole user group like user group .5 in database?

i have tried some things. this is one of them

         $result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_groups = '.1'";
            $i=0;
            while($row = dbarray($result))
            {
            dbquery("INSERT INTO ".$db_prefix."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('".$row['user_id']."','292','zwar','A New War Has Been Added. Please Visit The War Section. Zwar Message System!','".$smileys."','0','".time()."','0')");
            $i++;
            }


and this turns the screen blank when i goto add a war.....
0 replies

1 post

H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Since when is this a bug in the core release?

Moved...
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
B
B
  • Member, joined since
  • Contributed 82 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet