Witam,
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`");
or
die("Blad zapytania");
print t
("<table border=1>"); print t
("<td>nazwisko</td>"); print t
("<td>".$r['rok_urodzenia']."</td>"); }
}
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?