Wrox Programmer Forums
|
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 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 June 20th, 2005, 09:29 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with chapter 13 cms

Just got up to chapter 13 and i am getting an error message for the first script which sets up the tables. I followed the book correctly all from the start and it still seems to happen. Not sure what the error means,

I set up apache and mysql like the book said so to.

Here's the error

The used table type doesn't support FULLTEXT indexes

Thanks in advance

 
Old June 21st, 2005, 02:25 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone? It's actually pretty urgent. Just wondering why this would happen if i set up mysql php and apache and my dtabases exactly how the book says.

 
Old June 29th, 2005, 05:49 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone know? It has to have happened to someone else? I have followed the book to a t. I even used all the scripts that were provided and get the same error. I cant progress until this works.



 
Old June 29th, 2005, 05:57 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did just find this,

Only the MyISAM table type supports FULLTEXT indexes.

How do i change a table type? Or is this set up when i select my database type?

 
Old July 8th, 2005, 09:51 AM
Registered User
 
Join Date: Jul 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try adding:
 ... ) TYPE = MyISAM";
at the end of your CREATE TABLE ... statement.


Quote:
quote:Originally posted by hooligan
 I did just find this,

Only the MyISAM table type supports FULLTEXT indexes.

How do i change a table type? Or is this set up when i select my database type?

101boxdevice
 
Old July 24th, 2005, 12:15 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just tried but not sure if i put it in correctly, the $sql variable is the $sql = <<<EOS type one so im not sure if i put it in correctly.

Here's the query

Code:
$sql = <<<EOS
CREATE TABLE IF NOT EXISTS cms_articles (
  article_id int(11) NOT NULL auto_increment,
  author_id int(11) NOT NULL default '0',
  is_published tinyint(1) NOT NULL default '0',
  date_submitted datetime NOT NULL default '0000-00-00 00:00:00',
  date_published datetime NOT NULL default '0000-00-00 00:00:00',
  title mediumtext NOT NULL default '',
  body mediumtext NOT NULL,
  PRIMARY KEY (article_id),
  KEY IdxArticle (author_id,date_submitted),
  FULLTEXT INDEX IdxText (title,body), 
) TYPE = MyISAM;
EOS;
$result = mysql_query($sql) 
  or die(mysql_error());

And i get this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') TYPE = MyISAM' at line 12

Thanks in Advance

 
Old July 24th, 2005, 12:19 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just tried it again :) And it works thanks again. I left in a stupid comma at the end. Thanks again.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 - CMS gedgecc BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 November 15th, 2012 09:19 AM
Problems with Chapter 13 hooligan BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 November 11th, 2008 08:26 PM
Chapter 5 CMS extension yousaid BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 14 April 23rd, 2007 03:34 PM
problems with chapter 13 cms cyclonic BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 5 March 16th, 2007 04:25 AM
CMS (chapter 13) website integration nick.kirby BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 August 3rd, 2006 04:33 AM





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