mysql_query(conn, "UPDATE `online` SET `online` = online + 1 WHERE `id` = '1'"); sprintf(query,"UPDATE login Set ip='%s' where nuid = '%s'", ip, row[1]); mysql_query(conn, query)