A form can collect fields in a different order from the table. The column list in your INSERT determines which value goes where.
INSERT INTO users (city, name, id) VALUES ('Lund', 'Bo', 9);The form says city Umeå, name Liv, ID 7. Register Liv. Try listing the columns in form order.