MyBB.de Forum
php error - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Sonstiges (https://www.mybb.de/forum/forum-1.html)
+--- Forum: Programmierung (https://www.mybb.de/forum/forum-32.html)
+--- Thema: php error (/thread-12457.html)



php error - Megaleecher - 22.02.2009

Ich schreibe gerade ein Plugin und habe da einen blöden Fehler..

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/www/virtual/xxxxx/inc/plugins/whoisinchat.php on line 49

Hier ein Auszug aus den Code:

PHP-Code:
    $whoisinchat_group = array(
        
'name'            => 'whoisinchat',
        
'title'            => 'Who Is In Chat',
        
'description'    => 'Settings for the WhoIsIn-Chat Plugin.',
        
'disporder'        => 1,
        
'isdefault'        => 'off',
    );
    
    
db->insert_query('settinggroups'$whoisinchat_group);  // <== Zeile 49
    
$id $db->insert_id(); 

Kann mir jemand helfen?!

Ich weis einfach nicht, was daran falsch sein könnte...

Danke im vorraus.

MfG Megaleecher


RE: php error - Jockl - 22.02.2009

Evtl. mal das '$' vor 'db' setzen?
PHP-Code:
$db->insert_query('settinggroups'$whoisinchat_group);  // <== Zeile 49
    
$id $db->insert_id(); 

Das wäre jetzt mal nur geraten. Wink


RE: php error - Megaleecher - 22.02.2009

Omg...

Wie dumm kann man eigentlich sein...

Das ist mir nun peinlich :p

Danke für die hilfe...

Darauf hätt ich auch kommen können Wink

MfG

//Edit:

Ja das wars^^