用户表
- (userID)
- (username)
- (password)
- (email) etc...
Posts table
- (authorID)
- (postdata)
联系表
- (userID)
- (friendID)
我只想通过订阅获得员额数据。 用户信息数据库是用户。
It s kinda confusing to me, hopefully someone can help me out. This is what i have so far, but i m getting the subscription data aswell. I only want post table data.
mysql_query("SELECT posts.*, connections.userID, connections.subID FROM posts, connections
WHERE posts.userID = $userid AND posts.userID = connections.subID");