Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 20th, 2005, 09:29 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old June 21st, 2005, 02:25 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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.

Reply With Quote
  #3 (permalink)  
Old June 29th, 2005, 05:49 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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.



Reply With Quote
  #4 (permalink)  
Old June 29th, 2005, 05:57 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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?

Reply With Quote
  #5 (permalink)  
Old July 8th, 2005, 09:51 AM
Registered User
 
Join Date: Jul 2005
Location: , , .
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
Reply With Quote
  #6 (permalink)  
Old July 24th, 2005, 12:15 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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

Reply With Quote
  #7 (permalink)  
Old July 24th, 2005, 12:19 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:22 PM.


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