idocsidocs
جمعه 26 آذر 1389, 01:49 صبح
$sql = "update test set $field=11 where ( id= '$_POST[id]' )";
وقتی از این کد استفاده می کنم با این ارور مواجه می شم. چطور می تونم این مشکل رو برطرف کنم؟
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"$field"=11 where ( id= '1' )' at line 1
وقتی از این کد استفاده می کنم با این ارور مواجه می شم. چطور می تونم این مشکل رو برطرف کنم؟
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"$field"=11 where ( id= '1' )' at line 1