Mam pewnie banalny problem, ale nie mogłem się doszukać na forum. Mam skrypt:
<? // newssetup.php // Attempt to connect to the MySQL server // If the connection was unsuccessful... if (!$link) { // Output error information and exit exit; } // Attempt to create database. If successful... // Inform user of success } else { // Otherwise, tell user there was an error } // Attempt to select database. If successful... // Inform user of success } else { // Otherwise, tell user there was an error } // Build table creation query $query = \"CREATE TABLE news ( newsID INTEGER AUTO_INCREMENT PRIMARY KEY, title VARCHAR(100), author VARCHAR(30), posted INTEGER, body MEDIUMTEXT)\"; // Attempt to create table. If successful... // Inform user of success } else { // Otherwise, tell user there was an error } // Close the connection ?>
mam poprawnie zainstalowane Apache 2.0.54, mySQL 4.1.12a i php 5.04,
kiedy uruchamiam skrypt, nic się nie dzieje - nie otrzymuję żadnej informacji, po porstu biały ekran przeglądarki. Sprawdzałem w phpMyAdmin - baza nie została utworzona itp. Hasło wpisałem takie jak w konfiguracji mysql.
z góry dziękuję za pomoc.
pozdrawiam.