Witam,
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
print \"Error connecting to database server\"; }
// Attempt to create database. If successful...
// Inform user of success
print \"Database created<br>n\"; } else {
// Otherwise, tell user there was an error
print \"Couldn't create database<br>n\"; }
// Attempt to select database. If successful...
// Inform user of success
print \"Database selected<br>n\"; } else {
// Otherwise, tell user there was an error
print \"Couldn't select database<br>n\"; }
// 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
print \"Table created successfully\"; } else {
// Otherwise, tell user there was an error
print \"Error creating table\"; }
// 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.
Ten post edytował amaze 12.07.2005, 11:55:00