可我运行的结果是一样的。
$flag=$sql_row[finger]+1;这句没加1,不知为何!?
至少是mysql_query("update count set finger=".$flag." where name='count'");在+1前后一样!
$flag=$sql_row[finger]+1;这句没加1,不知为何!?
至少是mysql_query("update count set finger=".$flag." where name='count'");在+1前后一样!
$flag=$sql_row[finger]+1
和
$flag=$sql_row[finger]
$flag=$flag+1是不同的。为什么?
象这句
mysql_query("update count set finger=$flag where name='count'");为什么在前者没有加1而后者加1了呢?
$flag=$sql_row[finger];
$flag=$flag+1;
$count="count";
mysql_query("update count set finger='$flag' where name='$count'");试试。