Wrox Programmer Forums
|
BOOK: PHP and MySQL 24-Hour Trainer
This is the forum to discuss the Wrox book PHP and MySQL 24-Hour Trainer by Andrea Tarr ; ISBN: 978-1-1180-6688-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: PHP and MySQL 24-Hour Trainer 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 March 26th, 2013, 10:35 PM
Registered User
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson21 on Page 287

Hi,

I need help of adding MySQL tables to the database by creating table in PHP. For some reason, I got a message said that "Unable to create table". My codes were exactly the same as the example on page 287 in Lesson 21. I double checked the bold texts where $query= "CREATE TABLE ......" to make sure I didn't miss anything or use the wrong quotes. Everything was the same but I was unable to create the table in the database. Would you help me to find out what is the problem?

Thanks,
Jamie
 
Old April 7th, 2013, 02:05 PM
Tarrconsulting's Avatar
Wrox Author
 
Join Date: Nov 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating table

If the code is identical, then I would check the authorizations. If that's not it then I would check the code again. Do you have a program to check the code for you rather than relying on your eyes? I once searched for a bug for hours that turned out to be an extraneous space.

The most common problem for beginners is using single quotes instead of back ticks around table or field/column names.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 p 284-287 wrighwj BOOK: Beginning ASP.NET 4 : in C# and VB 1 September 3rd, 2011 08:30 AM
PDF giving first page as blank if page count > 1 using xsl:fo srmxslca XSLT 14 May 5th, 2011 05:01 AM
Page 210:Page object calling a private method from BasePage? aperture8 BOOK: Beginning ASP.NET 4 : in C# and VB 6 August 9th, 2010 07:04 AM
can’t open the page because the server where this page is located isn’t responding m_alsobaai Forum and Wrox.com Feedback 3 July 15th, 2010 06:13 AM
How to print a web page without title, URL, page #, date and time Mattt C# 2 July 17th, 2009 03:02 AM





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