php - How do I include my ID with the ID's from a SELECT and JOIN statement? -


I have been completely stumped on this, and the reasoning behind this is not correct, so I once asked the experts Changing again

These are my tables:

| Table. Follow

| Owner ID | UserID |

| Table.supers |

| ID | Username

| Table. Posted in |

| ID | Owner ID | Posted in | Date |

I am using posts with information about the user. So the argument came with me ...

Follow. Honored = Follow me more. Userid = user.id = post. OnorID

But also, how would I include my own postings?

Here's my SQL:

  SELECT * from the table. Post join tables. User on table.post. Owner ID = table.USERS.IdOn table. Follow the table. Owned = Table. Follow. USIDID and Table. behind. OnerID = 'MyDay' order, table.post.date DESC   

but it is not giving me posting as well, it only provides posting of users I am following. The issue is that I am using the ID that I am getting from the table. Follow, and obviously I can not follow myself. So I did it but it does not work: Choose from Add to the table. Add post table. Users on the table. Post. Honor ID = Table the user. Add ID table. Post. OwnID = Table Follow. USID and table (table.OpenerIDID = '$ MyID' or table.post.onered = 'maid'). PostDate DESC

Any suggestions?

  From the table. ON p.OwnerID = f.UserID INNER Join table. Owned = UIDID Where p. OwnID = '$ MyAid' or F. Owned = 'Maid' ordering P.DATE DESC    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -