Jump to content

[php] Memory Concern please help


JonnySnip3r

Recommended Posts

Hey guys i have been making a website where friends can post on each others profiles like facebookish :D anyways im not sure if this is th ebest way to do it but i have this below its part of the code that pulls all the friends of the member from the database::

 

$query_friend = mysql_query("SELECT my_id,friend_id FROM site_friends WHERE my_id='$my_id'");
		while($row = mysql_fetch_assoc($query_friend)){
			$friend_id = $row['friend_id'];
		}

 

then i pass it into a function blah blah not got that for yet :D anyway what happens if this person ends up having 100s of friends will this be harsh on the servers memory?

 

or should i not worry to much ? hope someone can help thanks!!

Link to comment
https://forums.phpfreaks.com/topic/211520-php-memory-concern-please-help/
Share on other sites

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.