 |
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
|
|
|
|

April 12th, 2004, 04:39 PM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

April 14th, 2004, 10:38 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
We are looking into this issue and hope to post a resolution soon.
XUMUSKIEFAN
Wrox Moderator
|
|

April 28th, 2004, 08:14 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Preferrably sooner than later.
|
|

May 18th, 2004, 05:19 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
did anyone learn anything about this missing script? i have just hit this page and also don't know this is...
|
|

May 19th, 2004, 02:38 PM
|
|
Registered User
|
|
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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! :)
|
|

May 28th, 2004, 01:26 PM
|
|
Authorized User
|
|
Join Date: May 2004
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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);
|
|

April 19th, 2008, 06:21 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can anyone help me. I cant figure out how to get my phpadmin program to open. I cant find the shortcut for it.
|
|

April 19th, 2008, 09:27 PM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 |
|
 |