Help Center Live Community
April 17, 2014, 11:04:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: mysql to postgre  (Read 3354 times)
hotdesc
Not too much to say...
*
Offline Offline

Posts: 13


« 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
Logged
hotdesc
Not too much to say...
*
Offline Offline

Posts: 13


« Reply #1 on: January 09, 2009, 01:33:29 PM »

resolved
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.154 seconds with 18 queries.

Google visited last this page April 02, 2014, 03:32:15 PM