-1
안녕하세요, 데이터베이스를 업데이트해야합니다. 이 코드를했지만 제대로 동작하지 않습니다 :OSCommerce 쿠키에서 MySQL 필드 업데이트
<?php
if (isset($_COOKIE['credits_id'])) {
tep_db_query("update " . TABLE_CUSTOMERS . " set credits+ WHERE customers_id='".mysql_real_escape_string($_COOKIE['credits_id']). "'");
}
else
{
echo 'fout';
}
?>
1064 - 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 '+ WHERE customers_id='17'' at line 1
update customers set credits+ WHERE customers_id='17'
[TEP STOP]
그것은 테이블 customers
의 필드 credits
를 업데이트 할 필요가있다. 어떻게해야합니까?
을 도움이되기를 바랍니다. 그게 틀림 없습니까? – str