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

A rank users order by points
I want to make an insert from table 'rank' , with number (rank) from the cod blow, to fild users.ran

Bandwidth monitoring?
Hi guys,

I need a little information I have written a php app and I occurred to that I need

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

Simple AND question
Hello,

I've got following code:

Code: if(strpos($row[13],"http://")

PHP5 - Verifying a secure mail is secure
I need to send an e-mail from a form to a external department and because it contains personal custo

Career Change into SAP
Hai
I am sajesh ,did my diploma in Mechatronics i have a 4 years of experience in

I need an iframe that calls up a different page according to the date
hi

I don't know any php (only html) and I urgently need to do the following:

I need a

unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_
Can anyone view my code and tell me why im getting the error:
Parse error: syntax error, unexpect

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

Redirect not working after making a POST/GET
Hi Everyone,

I am a novice in PHP. Here I have 2 pages, one page with a textbox and button an

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