Jump to content

Will this kill my site?


Mountain Water

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.