ok, not resolved...
i typed this all manually and no 'Movie Database successfully created', no errors, nothing. browser says 'page loaded' but its blank.
<?php
//connect to mysql
$connect = mysql_connect("localhost", "root", "*****") or
die (mysql_error());
//create main database
mysql_create_db("wiley") or
die (mysql_error());
//select database
mysql_select_db("wiley");
//create "movie" table
$movie = "CREATE TABLE movie (
movie_id int(11) NOT NULL auto_increment,
movie_name varchar(255) NOT NULL,
movie_type tinyint(2) NOT NULL default 0,
movie_year int(4) NOT NULL default 0,
movie_leadactor int(11) NOT NULL default 0,
movie_director int(11) NOT NULL default 0,
PRIMARY KEY (movie_id),
KEY movie_type (movie_type, movie_year)
)
TYPE=MyISAM AUTO_INCREMENT=4";
$results = mysql_query($movie)
or die (mysql_error());
//create "movietype" table
$movietype = "CREATE TABLE movietype (
movietype_id int(11) NOT NULL auto_increment,
movietype_label varchar(100) NOT NULL,
PRIMARY KEY (movietype_id)
)
TYPE-MyISAM AUTO_INCREMENT=9";
$results = mysql_query($movietype)
or die (mysql_error());
//create "people" table
$people = "CREATE TABLE people (
people_id int(11) NOT NULL auto_increment,
people_fullname varchar(255) NOT NULL,
people_isactor tinyint(1) NOT NULL default 0,
people_isdirector tinyint(1) NOT NULL default 0,
PRIMARY KEY (people_id)
)
TYPE=MyISAM AUTO_INCREMENT=7";
$results = mysql_query($people)
or die (mysql_error());
echo "Movie Database successfully created!";
?>
my apologies for calling 'resolved'. when i tried this(with quotes fixed):
<?php
mysql_connect("localhost", "root", "*****")
or die (mysql_error());
echo "connection successful";
?>
i got 'connection successful' so i got excited but apparently i haven't got much further.