You are here: Re: Cannot connect to localhost using GoDaddy « PHP Programming Language « IT news, forums, messages
Re: Cannot connect to localhost using GoDaddy

Posted by Jerry Stuckle on 06/06/05 04:38

Dale wrote:
> I'm (trying) to help a friend setup a MySQL db and use some simple
> scripts on a site hosted with GoDaddy. I note that GoDaddy appears to
> use Microsoft. I have done this:
>
> $connection = mysql_connect("localhost","mydatabase","password")
> or die ("Couldn't connect to server.");
> $sql = mysql_query("SELECT * FROM dummy");
> $row = mysql_fetch_array($sql);
> echo $row['name'];
> ?>
>
> on several Apache servers and it always seems to work. I created the
> MySQL database using the GoDaddy control panel (which is very confusing
> and poor IMO). I dove into phpAdmin and was able to do stuff. But I
> can't get php to connect.
>
> Is there something different I need to do for Microsoft servers?
>
> Thanks,
>

Did you ask GoDaddy? The database may not be on your host. Check their
documentation.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация