Update post.php

I added the different foreign keys but only completed the one that I had tables for. Referral source. Also updated to mysqli from mysql connect statements.