I have a mysql syntax error that tells me this: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= 'upVote'' at line 1"
Here is my code:
$likedQuery = mysql_query("SELECT Liked FROM " . $cookie . "WHERE type = 'upVote'", $dbh2) or die (mysql_error());
$likedArray = mysql_fetch_array($likedQuery);
$allLikes = $likedArray['Liked'];