Thread: uhum???
View Single Post
Old 11-21-2007, 12:42 PM   #1 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default uhum???

Quote:
Warning: Attempt to assign property of non-object in C:\wamp\www\DB Class 2\includes\classes.php on line 12
classes.php:
php Code:
<?php

/**
||||||||||||||||||||||||||||||||||||||||||
|||| @author Tanax
|||| @copyright 2007
||||||||||||||||||||||||||||||||||||||||||
**/


    include('classes/TANAXIA.php');
    include('classes/DB.php');
    $tanaxia->database = DB::getInstance($tanaxia['config']['database']['type']);   
    $tanaxia->database->setHandler(
               
                        $tanaxia['config']['database']['host'],
                        $tanaxia['config']['database']['user'],
                        $tanaxia['config']['database']['pass'],
                        $tanaxia['config']['database']['data']
                       
                        )
                        ->connect()
                        ->select();
                       
                       
    $tanaxia->user = TANAXIA::getInstance('user', $tanaxia->database);
   
?>

Ohye, and btw... the $tanaxia variables are declared in config.php.
And classes.php are included in config.php
Tanax is offline  
Reply With Quote