Jump to content

Recommended Posts

mysql_query("SELECT pm from users WHERE id = $_SESSION['user_id'];");

 

I run this every refresh, so if a user has a new message i got more functions for it to display a "NEW MESSAGE WINDOW"

 

will this kill my site?

 

i got 20gb bandwidth and 2b space/month, 3.95?month

 

Link to comment
https://forums.phpfreaks.com/topic/186637-will-this-kill-my-site/
Share on other sites

but like isn't this how forums supposed to be coded i mean i set them to $_SESSIONs so i dont have to select username each refresh.. but now sence i added private messaging system i need to select pm from user = $_SESSION['user_id'] but i dont want to run this each time a user refreshes on my site, maybe only show it when they go to the main page?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.