This question already has an answer here:
For some reason it is giving me this error Parse error: syntax error, unexpected '$query' (T_VARIABLE)
code:
$query="SELECT * FROM posts, users
WHERE posts.userID = users.userID ORDER BY postTimestamp";
$result = mysqli_query($connection $query);
</div>