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

IIS on 2003 anon access disabled issue
I have an IIS server that belongs to a domain, and anonymous access is turned off for all my sites.

Mail Script Problems
I have created a PHP mail script. I am having a problem though. In $body i am trying to put two va

mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:

Code

Progress bar for webpage
Hi,
I want to implement a progress/waiting bar on my webpage - exactly the same thing that the Mi

dynamic table with forms
I have a table that is populated with mysql data and in teh first column there is a raido button tha

Session variable help
I'm having a very troubling issue. Maybe I'm just looking over something but I have looked at the co

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

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