Jump to content
derekshull

News Feed Design

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

When I run that command I get:

 

Username Followname

derekshull dvdowns

derekshull ForgottenSong

derekshull test

derekshull owensinguatemala

Share this post


Link to post
Share on other sites

So you do have several other users you're following. Try the other query I gave you in place of yours. 

Share this post


Link to post
Share on other sites

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".

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.