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

private constructor
Hello,

Can we create a constructor as private? If yes, what is the use of it? If no, why can'

TabControl Inside ListView Not Editing
Hello everybodyI have a ListView on my page. Inside the ListView I put a TabControl, cuz I want to p

records between 2 dates
Hello all,

I have a date tracked table which contains effective_start_date and effective

please fix the error
What is the error in the below code ???
Line number On/Off | Expand/Contract <?php

Load file in PHP
I have 2 files. The first is a PHP generated XML file that's dependent by 2 inputs. The second is a

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

Help with forum quoting?
Hi im working on a forum and I have alomost finished it but i want a user quote system like twitter

need help with mail()
hi i want to send an email with attaching pdf file using php. i have the following script but the pr

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

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