Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.