Update some php code to connect to database

Thanks men completed on time and  budget. Will definitely let you know in future if my site needs an update

justinw
Australia