runnerjp Posted May 29, 2008 Share Posted May 29, 2008 hey i im changing my friends list apprach is its not working how i would like it to so i would like to make it so that my friends db would look like this username frindsname 1 2 2 1,3 3 2,5,7,3,45,44 ect ect so far i have $add = mysql_query( "INSERT INTO `friends` (`friendname`) VALUES ('$get_username_value') Where username = '$_GET[user]' "); but how do i also add it to the usernames field where they where added and add the username and make it so its 1,2,3,4,5 aghhh lol Link to comment https://forums.phpfreaks.com/topic/107830-friends-list-for-profile-site/ Share on other sites More sharing options...
gizmola Posted May 29, 2008 Share Posted May 29, 2008 Wrong approach. What you should have is a row for each friend. Your structure supports this fine. Link to comment https://forums.phpfreaks.com/topic/107830-friends-list-for-profile-site/#findComment-552769 Share on other sites More sharing options...
runnerjp Posted May 29, 2008 Author Share Posted May 29, 2008 what do you mean wrong approach bit confused lol Link to comment https://forums.phpfreaks.com/topic/107830-friends-list-for-profile-site/#findComment-552770 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.