src/lastfmapi/Lib/Cache.php
private function create_table()
    {
        if ($this->type == 'sqlite') {
            $auto_increase = '';
        } else {
            $auto_increase = ' AUTO_INCREMENT';
        }
        $query = "CREATE TABLE cache (cache_id INTEGER PRIMARY KEY" . $auto_increase . ", unique_vars TEXT, expires INT, body TEXT)";
        if ($this->db->query($query)) {
            // Ok
        } else {
            // TODO: Handle error
            echo $this->db->error;
        }
    }
private function create_table()
    {
        if ($this->type == 'sqlite') {
            $auto_increase = '';
        } else {
            $auto_increase = ' AUTO_INCREMENT';
        }
        $query = "CREATE TABLE cache (cache_id INTEGER PRIMARY KEY" . $auto_increase . ", unique_vars TEXT, expires INT, body TEXT)";
        if ($this->db->query($query)) {
            // Ok
        } else {
            // TODO: Handle error
            echo $this->db->error;
        }
    }
private function create_table ( ) { if ( $ this -> type == 'sqlite' ) { $ auto_increase = '' ; } else { $ auto_increase = ' AUTO_INCREMENT' ; } $ query = "CREATE TABLE cache (cache_id INTEGER PRIMARY KEY" . $ auto_increase . ", unique_vars TEXT, expires INT, body TEXT)" ; if ( $ this -> db -> query ( $ query ) ) { // Ok
 } else { // TODO: Handle error
 echo $ this -> db -> error ; } }
Internal method to create the table if it doesn't exist
@access private
@return void
Internal method to create the table if it doesn t exist