Wrox Programmer Forums
|
BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143
This is the forum to discuss the Wrox book Beginning PHP 6, Apache, MySQL 6 Web Development by Timothy Boronczyk, Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz; ISBN: 9780470391143
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 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
 
Old February 12th, 2010, 07:15 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chp3 error - pls help

Hi,
I have created the databases (db_ch03-1.php and db_ch03-2.php) as per pages 87 to 89 but keep getting an error message when i try and run it from my browser. The message i get is "Table 'movie' already exists"

I have checked and triple checked that i have entered correct code and just can't seem to find what is causing this error.

Please please help me !!
 
Old February 12th, 2010, 11:34 PM
Authorized User
 
Join Date: Jan 2010
Posts: 25
Thanks: 1
Thanked 4 Times in 4 Posts
Default

I think you're ok with this error. Once you run the script, the table is created. If you run it again, you will get the table exists error.

If you're comfortable at the MySql prompt enter this:

Mysql>use moviesite;
MySql> show tables;

You should see your tables listed. Then try:

MySql> describe movie;

You should see the table and all of it's columns. Then try:

MySql> select * from movie;

You should see all of the movie table 's data.

If you need to run the script again, first do this:

MySql> drop table movie;

This will erase the table and all of it's data. You can then run your script again and it should work error free.

BTW, if you don't know about using MySql prompt, write back. It can also be done through php. It's just more cumbersome.

Let me know how it goes.
Regards,
Boz
The Following User Says Thank You to BozHogan For This Useful Post:
Ranbir (February 14th, 2010)
 
Old February 14th, 2010, 12:03 PM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Smile

Boz,

Thanks a million - It works now.

Yippeee





Similar Threads
Thread Thread Starter Forum Replies Last Post
pls help me out..runtime error 20599 archana007 SQL Server 2000 2 April 5th, 2006 06:14 PM
PLS-103 error tiff Oracle 0 November 10th, 2005 02:57 AM
Chp3, pg 100. Strange behavior brandonsaxe BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 20 November 3rd, 2003 07:26 PM
Automation Error 430 Pls Help sumanmukherjee VB Components 0 September 5th, 2003 01:21 AM





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