PDA

View Full Version : Solved


omegatsuki
05-10-2009, 03:29 PM
I've never used mySQL or any PHP scripts before, so I expected it to be a challenge, but...

Filling in the form with what seems like it should be right, leads me to this.


Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host '***' (2) in /***/htdocs/adoptables/inc/functions.php on line 13
Error connecting to MySQL

Asterisks just there to remove the information that seemed personal. So... I saw some other threads on here that looked like similar problems, but... Even though the advice given in those helped the posters, nothing's worked for me.

I get the feeling I'm missing something really obvious. Anyone want to help out here?

Bloodrun
05-10-2009, 03:34 PM
are you sure that host name you gave was to your MySQL sever? and not your FTP Server?

omegatsuki
05-10-2009, 03:57 PM
Strangely, the MySQL part of the webhost doesn't have a different server name. I've tried every possible variation of it, though, and still have nothing...

Bloodrun
05-10-2009, 03:59 PM
Strangely, the MySQL part of the webhost doesn't have a different server name. I've tried every possible variation of it, though, and still have nothing...


The only other thing I can think of is that function that calls the server, is typed incorrectly.

So you'll just have to wait for BMR777 to shed some lite on this.

omegatsuki
05-10-2009, 04:35 PM
ah...... I don't know why, but I tried it without a domain and it somehow worked. Sorry to trouble you, but still thanks for helping.

Bloodrun
05-10-2009, 04:54 PM
ah...... I don't know why, but I tried it without a domain and it somehow worked. Sorry to trouble you, but still thanks for helping.


Lol no trouble. =D

Steelghost600
05-12-2009, 07:48 PM
How can I fix this for me? Im having the same problem.

Bloodrun
05-12-2009, 10:08 PM
How can I fix this for me? Im having the same problem.


If your having the same problem. Then just follow the steps I gave.