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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.