Hi Ray,
Thank you for your reply.
Hmm... as you say Line 9 is the log in info. All the info is correct, it's connected fine to the local database.
Data and images are all appearing fine on the local site. It seems it's all working fine except when I send order to the database, the data on the same raw kept written over again and again instead of moving on to the next row (in the database I mean), and on the local site the page doesn't move to the success page from the confirm page.