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);
mysqli_query($connection,$query);
– Abhik Chakraborty May 24 '14 at 12:32