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
Share on other sites

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.