Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 12th, 2004, 04:39 PM
Registered User
 
Join Date: Jan 2004
Location: Menomonee Falls, WI, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing .sql script

In chapter 6 page 164. Creating a new database in phpMyAdmin named chapter6,that part worded fine. But I can not find the chapter6.sql script to populate the db. Maybe I'm missing something. Could someone point me in the right direction. Thanks.

  #2 (permalink)  
Old April 14th, 2004, 10:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Indianapolis, IN, USA.
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We are looking into this issue and hope to post a resolution soon.

XUMUSKIEFAN
Wrox Moderator
  #3 (permalink)  
Old April 28th, 2004, 08:14 PM
Registered User
 
Join Date: Apr 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Preferrably sooner than later.

  #4 (permalink)  
Old May 18th, 2004, 05:19 PM
Registered User
 
Join Date: Apr 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

did anyone learn anything about this missing script? i have just hit this page and also don't know this is...

  #5 (permalink)  
Old May 19th, 2004, 02:38 PM
Registered User
 
Join Date: May 2004
Location: London, , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have been messing about with this one and I think I have the answer.

Ignore the instruction to create a new database called chapter6 and forget about chapter6.mysql.

In the script index.php make the following changes:

Change line 2: $link = mysql_connect("localhost", "root", "")

to: $link = mysql_connect("localhost","root","mysqlpass")

and

line 4: mysql_select_db('chapter6', $link) or die ( mysql_error());

to: mysql_select_db('wiley', $link) or die ( mysql_error());

and away you go! :)
  #6 (permalink)  
Old May 28th, 2004, 01:26 PM
Authorized User
 
Join Date: May 2004
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I apologize that this was not posted earlier. Here is the code you need for chater6.mysql:


CREATE TABLE `movie` (
`movie_id` int(11) NOT NULL auto_increment,
`movie_name` varchar(255) NOT NULL default '',
`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 PACK_KEYS=0 AUTO_INCREMENT=4 ;

INSERT INTO `movie` VALUES (1, 'Bruce Almighty', 5, 2003, 1, 2);
INSERT INTO `movie` VALUES (3, 'Grand Canyon', 2, 1991, 4, 3);
INSERT INTO `movie` VALUES (2, 'Office Space', 5, 1999, 5, 6);

CREATE TABLE `movietype` (
`movietype_id` int(11) NOT NULL auto_increment,
`movietype_label` varchar(100) NOT NULL default '',
PRIMARY KEY (`movietype_id`)
) TYPE=MyISAM AUTO_INCREMENT=9 ;

INSERT INTO `movietype` VALUES (1, 'Sci-Fi');
INSERT INTO `movietype` VALUES (2, 'Drama');
INSERT INTO `movietype` VALUES (3, 'Adventure');
INSERT INTO `movietype` VALUES (4, 'War');
INSERT INTO `movietype` VALUES (5, 'Comedy');
INSERT INTO `movietype` VALUES (6, 'Horror');
INSERT INTO `movietype` VALUES (7, 'Action');
INSERT INTO `movietype` VALUES (8, 'Kids');

CREATE TABLE `people` (
`people_id` int(11) NOT NULL auto_increment,
`people_fullname` varchar(255) NOT NULL default '',
`people_isactor` tinyint(1) NOT NULL default '0',
`people_isdirector` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`people_id`)
) TYPE=MyISAM PACK_KEYS=0 AUTO_INCREMENT=7 ;

INSERT INTO `people` VALUES (1, 'Jim Carrey', 1, 0);
INSERT INTO `people` VALUES (2, 'Tom Shadyac', 0, 1);
INSERT INTO `people` VALUES (3, 'Lawrence Kasdan', 0, 0);
INSERT INTO `people` VALUES (4, 'Kevin Kline', 1, 0);
INSERT INTO `people` VALUES (5, 'Ron Livingston', 0, 0);
INSERT INTO `people` VALUES (6, 'Mike Judge', 0, 0);

  #7 (permalink)  
Old April 19th, 2008, 06:21 PM
Registered User
 
Join Date: Apr 2008
Location: , , USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rob63082
Default

Can anyone help me. I cant figure out how to get my phpadmin program to open. I cant find the shortcut for it.
  #8 (permalink)  
Old April 19th, 2008, 09:27 PM
Registered User
 
Join Date: Apr 2008
Location: , , USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rob63082
Default

never mind. i got it figured out.

Robbie


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
sql script ttpdotcom BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 9th, 2008 03:08 PM
Missing SQL Chap 6 Earl G. Hyde BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 May 15th, 2005 10:35 AM
AdsManager SQL Code Missing justin_dago BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 9th, 2004 03:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.