Jessica Posted February 26, 2013 Share Posted February 26, 2013 You do still need to limit that query to your follows. In phpmyadmin or mysql command line run SELECT * FROM follow WHERE username = 'Put your username here'; - what do you get? Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414985 Share on other sites More sharing options...
Jessica Posted February 26, 2013 Share Posted February 26, 2013 Also in the longrun you'll want to switch the order of your JOIN and probably just use INNER. SELECT description, needsusername, datesubmitted FROM needs INNER JOIN follow ON follow.followname = needs.needsusername AND follow.username = 'Your username here'; Is what I think you'll need based on your posts. Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414986 Share on other sites More sharing options...
derekshull Posted February 26, 2013 Author Share Posted February 26, 2013 When I run that command I get: Username Followname derekshull dvdowns derekshull ForgottenSong derekshull test derekshull owensinguatemala Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414989 Share on other sites More sharing options...
Jessica Posted February 26, 2013 Share Posted February 26, 2013 So you do have several other users you're following. Try the other query I gave you in place of yours. Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414991 Share on other sites More sharing options...
derekshull Posted February 26, 2013 Author Share Posted February 26, 2013 I'm pretty sure it's solved. I'll mark it solved and go with it for now, thanks! Also to the snide comment you made earlier, remember you're the 26 year old that started the sarcastic comments. My employees appreciate your "help". Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414994 Share on other sites More sharing options...
derekshull Posted February 26, 2013 Author Share Posted February 26, 2013 But all hard feelings aside: thank you, you really did end up helping. Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414995 Share on other sites More sharing options...
Jessica Posted February 26, 2013 Share Posted February 26, 2013 Way to ensure you won't get my help again. This is why I don't usually write actual code for people. They act like assholes even when you give them what they want. Bite me. Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1414998 Share on other sites More sharing options...
AyKay47 Posted February 26, 2013 Share Posted February 26, 2013 Gotta love it... Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1415003 Share on other sites More sharing options...
captawesome Posted February 17, 2015 Share Posted February 17, 2015 Two years later and I really enjoyed reading this, super entertaining. Anyways "Jessica" your code snippet really helped and I can't stand it when the person doesn't even try and help themselves and expects you to do everything and then gets rude when you don't solve all their issues. Quote Link to comment https://forums.phpfreaks.com/topic/274936-news-feed-design/page/2/#findComment-1505930 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.