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 
Messages posted by: broadband
Forum Index » Profile for broadband » Messages posted by broadband
Author Message
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?
NM.. I found the answer.
Hi,

I believe I have everything working except the cookies. I can vote normally, it'll show the results normally, but if I reload the page, it doesn't recognize that you have already voted.

This is the header of my html file...



This is where it calls the poll...



It did say previously, include_once, but I found different areas which said include rather than include_once, so I used the include without the _once. It doesn't work either way regardless, it just keeps adding to the totals if you keep refreshing the page. Any Ideas?

MySql DB
Poll v2.02
IIS Platform.
 
Forum Index » Profile for broadband » Messages posted by broadband
Go to:   
Based on the open source JForum