Help Center Live Community

Support => Installation Help & Software Support => Topic started by: hotdesc on January 05, 2009, 03:23:51 PM



Title: mysql to postgre
Post by: hotdesc on January 05, 2009, 03:23:51 PM
Code:
function connect()
        {
            $this->id = mysql_connect($GLOBALS['conf']['host'], $GLOBALS['conf']['username'], $GLOBALS['conf']['password']) or die(mysql_error());
            if ($this->id) {
                $this->connection = true;
                $this->select();
            } else {
                $this->connection = false;
                $this->error = mysql_error($this->id);
            }
        }

        // Disonnect, then set $this->connection to true
        // if connected or false if not connected
        function disconnect()
        {
            if ($this->connection) {
                mysql_close($this->id);
                $this->connection = false;
            }
        }

help me


Title: Re: mysql to postgre
Post by: hotdesc on January 09, 2009, 01:33:29 PM
resolved