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

$database['host'] = localhost;

No comments posted yet

Your Answer:

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

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

2 things: enter doesn't work in IE & empty form
i have this search form that works well except for 2 things.

1) on IE when i hit enter instea

How can i steam a video on my PHP site? (non YouTube)
Basically I have a PHP site and don't want to give page rank to YouTube. I just want to stream a bas

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: $setImage= 'productimages/' . dat

Quick Question about echo value
Hey guys, I'm trying to get something to show differently in one of my scripts. I'm trying to make

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

multipart emiail forms
Hi All,

I am new to the boards and I've been working on a form (which is rather massive, imo

Odd or Even
Inside of a while loop I need to echo several rows of info...easy enough.

In the loop (for th

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

Help with syntax
Hi all!

The $bridge variable is not getting passed while it is contained in the line below:

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