Po dodaniu nowej strony w Drupal 7 przy pomocy php filter, dostaje komunikat jak w tytule ;/
kod wyglada tak:
<?php 'database' => '', 'username' => '', 'password' => '', 'host' => 'sql.myhost.nazwa.pl:3306', 'driver' => 'mysql', ); Database::addConnectionInfo('db_legionisci', 'default', $other_database); db_set_active('db_legionisci'); $wynik= Database::getConnection('default', 'db_legionisci')->query("SELECT rok_urodzenia FROM legionisci where imie = `Zygmunt`"); } } db_set_active(); // without the paramater means set back to the default for the site drupal_set_message(t('The queries have been made.')); ?>
Wie ktoś może gdzie jest błąd składni?