[PHP-DB] Newbie q: problem with mysql_connect() on hosted service

2002-12-27 Thread Baumgartner Jeffrey
Sorry to bother you experts with a simple question (well, two actually).

I'm new to PHP and mysql. I'm using a hosted service (so I don't have access
to configuration files, server, etc). Recently, the server crashed. Since
resurrecting, all files attempting to connect to MySQL using 

$dbcnx = mysql_connect(localhost, [user], [password);

result in an error like:

Fatal error: Call to undefined function: mysql_connect() in
/home/.sites/22/site13/web/werks/formtest2.php on line 8

Prior to the crash, there was no problem.

After a string of questions to support, they finally admitted they don't
know PHP well enough to help me (!?!). However, they did install phpMyAdmin
- which seems to work okay. So, I'm not sure if I am doing something
fundamentally stupid or if the web host (Easyhost) has not configured things
correctly. Any suggestions will be most welcome.

On a related issue, I am completely fed up with Easyhost and am looking for
another web host. They should obviously be able to provide PHP + MySQL
together with decent support (very important). Ideally, they should provide
scalable service (from shared hosting to dedicated and be EU located (but
this isn't critical). They must be willing to host adult content (soft-core
erotica and adult humour). Any recommendations (on or off-list will be much
appreciated).

A million thanks,

Jeffrey Baumgartner


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Newbie q: problem with mysql_connect() on hosted service

2002-12-27 Thread Rick Widmer
At 10:45 AM 12/27/02 +0100, Baumgartner Jeffrey wrote:


Fatal error: Call to undefined function: mysql_connect() in
/home/.sites/22/site13/web/werks/formtest2.php on line 8


This means that MySQL is not enabled within PHP.  There is nothing you can 
do about it.  The hosting company needs to enable access to MySQL, probably 
by re-compiling PHP and Apache.  The exact fix depends on operating system, 
web server, and how PHP is compiled.

Rick


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php