$sql = \"select body, stamp from posts where user_id = \'$userid\' order by stamp desc\";
NOTE: the above query works fine. What I want to do is also s
This should work fine:
SELECT posts.body, posts.stamp, users.username FROM posts, users WHERE posts.user_id = '$userid' AND posts.user_id = users.user_id ORDER BY posts.stamp DESC