Thank you for the reply. Like I said the code works fine when running on my local machine via localhost through XAMPP just not when I load the php file into my godaddy root directory.
For some reason I cant copy and paste my code into this chat as it wont let me post for some reason. But it is very simple code using $conn = mysqli_connect('188.16...', 'alexTest', 'alexTest', 'dbTest');
Any more suggestions??