p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: PHP and MySQL 24-Hour Trainer (http://p2p.wrox.com/forumdisplay.php?f=659)
-   -   Lesson21 on Page 287 (http://p2p.wrox.com/showthread.php?t=89707)

jamie0412 March 26th, 2013 10:35 PM

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

Tarrconsulting April 7th, 2013 02:05 PM

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.


All times are GMT -4. The time now is 09:27 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.