Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 2nd, 2003, 12:09 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
HELP with mySQL commands! Newbie!

Hello
I'm trying to install a php tool called Sitemapper that I DL from hotscripts.com

There is a SQL txt file that I tried to cut/paste into PHPmyAdmin,
Here is what I get:

SQL-query :

CREATE TABLE /*!32300 IF NOT EXISTS*/ section (
sectionID int(3) NOT NULL auto_increment,
parentID int(3) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
content text ,
PRIMARY KEY (sectionID),
INDEX title (title)
);

MySQL said:


You have an error in your SQL syntax near ''0',
title varchar(255) NOT NULL DEFAULT '',
content text ,
PRIMARY' at line 3


Anyone know what is wrong with the SQL entry?

Thanks!!!

Reply With Quote
  #2  
Old August 2nd, 2003, 01:10 AM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 906 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 17 m 15 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: HELP with mySQL commands! Newbie!

Use:

CREATE TABLE section (
sectionID int(3) NOT NULL auto_increment,
parentID int(3) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
content text ,
PRIMARY KEY (sectionID),
INDEX title (title)
);

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > HELP with mySQL commands! Newbie!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT