Incrementing the variable would be done like so...
But I get the feeling that, that is not the problem you are asking about. As this is the primary key of your table then you shouldn't need to worry about incrementing it anyway. Hasn' the column got an auto increment feature?