Solved it. Thanks for your efforts guys.

I did the whole thing over again

Before proceeding, I made sure of the following:
- installed 32bit - Postgresql
- make sure visual studio platform configuration is win32 and not x64 [Look in configuration manager in project properties]

The links below are the project property values I used

release_c_general_config.png

release_linker_input_config.png

release_linker_general_config.png

Copy all the files from the bin folder of the 32bit - Postgresql to the release folder of the visual studio project that you're using the libpqxx library on
[don't copy the .exe and .txt files] see below link to view what was included in the release folder

final_releaseFolder.png