Connect to database that isn't localhost


Posted on 16th Feb 2014 07:03 pm by admin

I am currently doing a small script for a company that doesn't have mySql support on there hosting. How would I connect to the database on my hosting account? Currently I am using the following but have tried http://www.mysite.com

Did you know?Explore Trending and Topic pages for more stories like this.
$database['host'] = localhost;
No comments posted yet

Your Answer:

Login to answer
93 Like 53 Dislike
Previous forums Next forums
Other forums

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Help with email validation please...
Hi,
Please could you help.
I have a register.php login page where users register, the detail

Ariba 9r - SAP MM Integration
Hi experts,

The standard Ariba adapter for 9r creates a relationship between Cost Centers

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

Show message after entering data
Hello Colleagues

I would like to display messages after entering the data example: "
dat

Grids not displaying decimals, and behaving differently on different PCs?
Hello,

I coded a relatively simple MII application that allows data from a form to be add

check if string contain only a-z/A-Z
Is where any way to check if string contains only a-z/A-Z, without writing an array with all possibl

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

Performance impact of cookies
Hi, I was just wondering what impact there would be in terms of performance if you where to set then

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash