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

解决方案 »

  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了呢?
      

  2.   

    改成:
    $flag=$sql_row[finger];
    $flag=$flag+1;
    $count="count";
    mysql_query("update count set finger='$flag' where name='$count'");试试。
      

  3.   

    mysql_query("update count1 set finger='".$flag."' where name='".flagcount."'");