Chipmunk Chat

Discussion in 'PHP' started by nrodes, Oct 4, 2008.

  1. #1
    I am trying to install Chipmunk Chat on my website
    On the README it says to run install.php

    When i try this my browser says:

    Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Abyss Web Server\htdocs\connect.php on line 2

    I do not know php at all.

    The php file is:

    <?php
    include "connect.php";
    $installmessages="CREATE TABLE ch_messages (
    ID bigint(21) NOT NULL auto_increment,
    poster varchar(255) NOT NULL default '',
    message mediumtext NOT NULL,
    registered int(11) NOT NULL default '0',
    time bigint(21) default NULL,
    PRIMARY KEY (ID)
    )";
    mysql_query($installmessages) or die(mysql_error());
    $installchatters="CREATE TABLE ch_chatters (
    ID bigint(20) NOT NULL auto_increment,
    chatter varchar(255) NOT NULL default '',
    password varchar(255) NOT NULL default '',
    email varchar(255) NOT NULL default '',
    PRIMARY KEY (ID)
    )";
    mysql_query($installchatters) or die("Could not install chatters table");
    $installadmins="CREATE TABLE ch_admins (
    ID int(11) NOT NULL auto_increment,
    adminname varchar(255) NOT NULL default '',
    password varchar(255) NOT NULL default '',
    PRIMARY KEY (ID)
    )";
    mysql_query($installadmins) or die("Could not install admin table");
    $installonline="CREATE TABLE ch_online (
    ID bigint(21) NOT NULL auto_increment,
    sessionname varchar(255) NOT NULL default '',
    time int(11) NOT NULL default '0',
    PRIMARY KEY (ID)
    )";
    mysql_query($installonline) or die("Could not install whose online");

    ?>


    Thanks!
     
    nrodes, Oct 4, 2008 IP
  2. techcone

    techcone Banned

    Messages:
    206
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are u sure MYSQL is installed. Plus have u modified connect.php according to your server.

    I can assist u if u want ! :)
     
    techcone, Oct 4, 2008 IP
  3. mehdi

    mehdi Peon

    Messages:
    258
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you have access to PHP.ini and if you are pretty sure if Mysql is installed then
    Search these lines separately in php.ini file:
    ;extension=php_mysql.dll
    and change it to extension=php_mysql.dll

    now search ;extension=php_mysqli.dll
    and change it to extension=php_mysqli.dll

    Thanks, hope it helps
     
    mehdi, Oct 4, 2008 IP