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

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

Image loading
Hi Developers,

I'm trying to display an image from images/image.gif getting the url from mysq

how to get different value in second view of webdynpro?
hello guys,

In ABAP webdynpro I am trying to create one application having two views.

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

show random images
hey guys

can someone please suggest a way in which the following code can be edited so it onl

Need a fuction to count entries in a field
Hi
I need a fuction to count how many times a email address is entered in to a field.

I ma

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

moving mouse to display image coordinates
I have an existing MFC application that shows an image in the main window.
I'd like to be able to

Passing variables with pagination - iterating through unique id per link
Hi everyone,
I have seen a few topics like this one. Still cant find the specific thing, so I am

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