Help With W5c Topsite Script

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

1 reply · 494 views · started 18 years ago · 2 min read

2 participants
trogenhorse Junior · 30 posts #1

friends i have following error with my sql tables, whenever i create tables in sql database i get following error:

Error SQL query:

-- -- Dumping data for table sites


-- -- Table structure for table tusers

CREATE TABLE tusers (

id int( 10 ) NOT NULL AUTO_INCREMENT , name varchar( 30 ) NOT NULL default '', pass varchar( 60 ) NOT NULL default '', admin int( 5 ) NOT NULL default '0', banned int( 5 ) NOT NULL default '0', PRIMARY KEY ( id ) , UNIQUE KEY name ( name )

MySQL said:

#1064 - 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 '' at line 8

==================================

and my sql table is as following:

CREATE TABLE cats ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default '', dscr varchar(100) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name) ) ;

-- -- Dumping data for table cats


-- -- Table structure for table misc

CREATE TABLE misc ( id int(10) NOT NULL auto_increment, dscr varchar(200) NOT NULL default '', text varchar(250) NOT NULL default '', PRIMARY KEY (id) ) ;

-- -- Dumping data for table misc

INSERT INTO misc VALUES (1, 'CLR', '2006-04-01');


-- -- Table structure for table sites

CREATE TABLE sites ( id int(10) NOT NULL auto_increment, sitename varchar(30) NOT NULL default '', cid int(10) NOT NULL default '0', sitelink varchar(200) NOT NULL default '', slogo varchar(200) NOT NULL default '', uid int(10) NOT NULL default '0', hin int(10) NOT NULL default '0', hout int(10) NOT NULL default '0', dhits int(10) NOT NULL default '0', thits int(12) NOT NULL default '0', banned int(5) NOT NULL default '0', dscr varchar(200) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY sitelink (sitelink) ) ;

-- -- Dumping data for table sites


-- -- Table structure for table tusers

CREATE TABLE tusers ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default '', pass varchar(60) NOT NULL default '', admin int(5) NOT NULL default '0', banned int(5) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY name (name)

I am hosting my site with http://www.freetzi.com... please help me solve this problem, also this sql tables is of topsite script of w5c, download following attachment to see script....

what change i will have to make please tell....

Attachments: w5cTOP.zip
rukiya Lead · 569 posts #2

friends i have following error with my sql tables, whenever i create tables in sql database i get following error: Error SQL query:

-- -- Dumping data for table sites


-- -- Table structure for table tusers

CREATE TABLE tusers (

id int( 10 ) NOT NULL AUTO_INCREMENT , name varchar( 30 ) NOT NULL default '', pass varchar( 60 ) NOT NULL default '', admin int( 5 ) NOT NULL default '0', banned int( 5 ) NOT NULL default '0', PRIMARY KEY ( id ) , UNIQUE KEY name ( name )

MySQL said:

#1064 - 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 '' at line 8

================================== and my sql table is as following: CREATE TABLE cats ( id int(10) NOT NULL auto_increment, name fb5 varchar(30) NOT NULL default '', dscr varchar(100) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name) ) ;

-- -- Dumping data for table cats


-- -- Table structure for table misc

CREATE TABLE misc ( id int(10) NOT NULL auto_increment, dscr varchar(200) NOT NULL default '', text varchar(250) NOT NULL default '', PRIMARY KEY (id) ) ;

-- -- Dumping data for table misc

INSERT INTO misc VALUES (1, 'CLR', '2006-04-01');


-- -- Table structure for table sites

CREATE TABLE sites ( id int(10) NOT NULL auto_increment, sitename varchar(30) NOT NULL default '', cid int(10) NOT NULL default '0', sitelink varchar(200) NOT NULL default '', slogo varchar(200) NOT NULL default '', uid int(10) NOT NULL default '0', hin int(10) NOT NULL default '0', hout int(10) NOT NULL default '0', dhits int(10) NOT NULL default '0', thits int(12) NOT NULL default '0', banned int(5) NOT NULL default '0', dscr varchar(200) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY sitelink (sitelink) ) ;

-- -- Dumping data for table sites


-- -- Table structure for table tusers

CREATE TABLE tusers ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default '', pass varchar(60) NOT NULL default '', admin int(5) NOT NULL default '0', banned int(5) NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY name (name) I am hosting my site with http://www.freetzi.com... please help me solve this problem, also this sql tables is of topsite script of w5c, download following attachment to see script....

what change i will have to make please tell....

CREATE TABLE `tusers` (

`id` int( 10 ) NOT NULL AUTO_INCREMENT ,
`name` varchar( 30 ) NOT NULL default '',
`pass` varchar( 60 ) NOT NULL default '',
`admin` int( 5 ) NOT NULL default '0',
`banned` int( 5 ) NOT NULL default '0',
PRIMARY KEY ( `id` ) ,
UNIQUE KEY `name` ( `name` ) );

put ); when u r missing to copy it

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close