php mysql güncelleme hatası

0 Cevap php

kodu:

mysql_connect('localhost','root','root');
mysql_select_db('share_counter');  

$sql_insert = "UPDATE wpshare SET '$social_name'='45' where post_title = '$post_title' ";
mysql_query($sql_insert) or die(mysql_error());

hatası:

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 ''twitter_count'='45' where post_title = 'test'' at line 1

teşekkürler avans

0 Cevap