If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
advanced poll install error  XML
Forum Index » Support Forum
Author Message
Anonymous



I get the following message when I try to install advanced poll (mysql version) by running install.php.

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/poll/install.php on line 666

looking at line 666 in install.php shows the following:

$serverid = mysql_connect($POLLDB["host"], $POLLDB["user"], $POLLDB["pass"]) or poll_error_msg("Cannot connect to mysql database");

I've set the config.inc.php file to:

$POLLDB["dbName"] = "poll";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "myusername";
$POLLDB["pass"] = "XXXXXX";
$POLLDB["class"] = "class_mysql.php";

I'm new to both php and mysql. The mysql server is running and it responds fine to "mysqladmin version". I've setup a user on the mysql server with the same username and password I entered in the config.inc.php file.

Any suggestions on why I'm getting this error would be greatly appreciated.

Cheers,

Ranken
broadband
Newbie

Joined: 08/09/2003 06:57:51
Messages: 3
Location: SoCal.
Offline

Anonymous wrote:I get the following message when I try to install advanced poll (mysql version) by running install.php.

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/poll/install.php on line 666

looking at line 666 in install.php shows the following:

$serverid = mysql_connect($POLLDB["host"], $POLLDB["user"], $POLLDB["pass"]) or poll_error_msg("Cannot connect to mysql database");

I've set the config.inc.php file to:

$POLLDB["dbName"] = "poll";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "myusername";
$POLLDB["pass"] = "XXXXXX";
$POLLDB["class"] = "class_mysql.php";

I'm new to both php and mysql. The mysql server is running and it responds fine to "mysqladmin version". I've setup a user on the mysql server with the same username and password I entered in the config.inc.php file.

Any suggestions on why I'm getting this error would be greatly appreciated.

Cheers,

Ranken


Sounds like you don't have your MySQL database setup. You did set that up right?

-Broadband
[WWW] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Make sure the user you created is setup properly, consult your host on this.
Also the host may be root rather than localhost again this is someting only your host can tell you.

As they offer MySQL they should of given info on how to create a user or created one for you and told you what the host name is.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum