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 |-|erc on 11/02/05 00:04

"ben" <usenet@bens-house.org.uk> wrote
: > 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.
:

right if I change the login info I get "SQL Connection troubles" instead so its connecting.
i removed the exit("I cannot get data") but now I just get blank results, I'll try to pin
down the error further.

Herc

 

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

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