topical media & game development
basic-php-03-createmovie.php / php
<?php
//connect to MySQL; note we’ve used our own parameters- you should use
//your own for hostname, user, and password
create = mysql_query("CREATE DATABASE IF NOT EXISTS moviesite")
or die(mysql_error());
//make sure our recently created database is the active one
mysql_select_db("moviesite");
//create "movie" table
results = mysql_query(movietype = "CREATE TABLE movietype (
movietype_id int(11) NOT NULL auto_increment,
movietype_label varchar(100) NOT NULL,
PRIMARY KEY (movietype_id)
)";
movietype)
or die(mysql_error());
//create "people" table
results = mysql_query(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.