You are here: Re: mySQL works on one server but not another « PHP Programming Language « IT news, forums, messages
Re: mySQL works on one server but not another

Posted by ben on 11/01/05 11:40

> Here's a test program that should output Members:0 but instead I get "I
> cannot get data from the database!". Its as if the tables are not there
> but I have created them, does anyone know why this would work on one
> server but not another?

Most of the reasons that I can think of would prevent the database from
connecting in the first place.
Have you got all error reporting turned on and can confirm that the
mysql_connect and mysql_select_db are working OK?

You can also try outputting mysql_error() after the connect, select_db and
query to get more information on the problem.

Ben

 

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

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