Jump to content

[SOLVED] Unexpected '=' error with a database query


magnetica

Recommended Posts

Wasn't sure to post this in the mySql forum or here but gathered here as it's a Php error I am getting

 

Anyway so heres my if else statement

if(isset($_GET['yt_id'])){
	$yt_id = $_GET['yt_id'];
	mysql_query = "UPDATE videos SET thumbs_up = thumbs_up +1 WHERE yt_id == '$yt_id'";

			}

 

And heres the error

Parse error: syntax error, unexpected '=' in /home/a8129045/public_html/include/updatevote.php on line 13

 

Now obviously the mySql query is line 13. I know it's probably simply but can you help?

 

Thanks

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.