My Sql Help.......... (please Help Me)

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

6 replies · 644 views · started 18 years ago · 1 min read

3 participants
trogenhorse Junior · 30 posts #1

Hi Friends,

I am trying to use the following script.

I downloaded it from this forum.

I upload all the files also cofiguring the config.php file. but when i insert tables i get following ERROR!!

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

SQL query:

-- -- Table structure for table landofwap_toplist

CREATE TABLE landofwap_toplist ( id int( 4 ) NOT NULL AUTO_INCREMENT , name varchar( 30 ) NOT NULL default '', pass varchar( 30 ) NOT NULL default '', mail varchar( 100 ) NOT NULL default '', link varchar( 150 ) NOT NULL default '', logo varchar( 150 ) default NULL , cat varchar( 20 ) NOT NULL default '', date datetime NOT NULL default '0000-00-00 00:00:00', lastout datetime NOT NULL default '0000-00-00 00:00:00', lastin datetime NOT NULL default '0000-00-00 00:00:00', incoming int( 10 ) NOT NULL default '0', out int( 10 ) NOT NULL default '0', total int( 10 ) NOT NULL default '0', description varchar( 150 ) NOT NULL default '', PRIMARY KEY ( id ) , UNIQUE KEY name ( name ) ) TYPE = MYISAM AUTO_INCREMENT =22;# MySQL returned an empty result set (i.e. zero rows).

-- Clock for counter reset landofwap_clock

CREATE TABLE landofwap_clock ( time datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY ( time ) , UNIQUE KEY name ( time ) ) TYPE = MYISAM AUTO_INCREMENT =22;# MySQL returned an empty result set (i.e. zero rows).

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 ';# MySQL returned an empty result set (i.e. zero rows).

-- -- Clock for co' at line 22

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

i am using free hosting from http://micklemuckle.0lx.net also this is my first time i am working with php and my sql database so please help me please..................

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

Hi Friends,

I am trying to use the following script.

I downloaded it from this forum.

I upload all the files also cofiguring the config.php file. but when i insert tables i get following ERROR!!

SQL query:

-- -- Table structure for table landofwap_toplist

CREATE TABLE landofwap_toplist ( id int( 4 ) NOT NULL AUTO_INCREMENT , name varchar( 30 ) NOT NULL default '', pass varchar( 30 ) NOT NULL default '', mail varchar( 100 ) NOT NULL default '', link varchar( 150 ) NOT NULL default '', logo varchar( 150 ) default NULL , cat varchar( 20 ) NOT NULL default '', date datetime NOT NULL default '0000-00-00 00:00:00', lastout datetime NOT NULL default '0000-00-00 00:00:00', lastin datetime NOT NULL default '0000-00-00 00:00:00', incoming int( 10 ) NOT NULL default '0', out int( 10 ) NOT NULL default '0', total int( 10 ) NOT NULL default '0', description varchar( 150 ) NOT NULL default '', PRIMARY KEY ( id ) , UNIQUE KEY name ( name ) ) TYPE = MYISAM AUTO_INCREMENT =22;# MySQL returned an empty result set (i.e. zero rows).

-- Clock for counter reset landofwap_clock

CREATE TABLE landofwap_clock ( time datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY ( time ) , UNIQUE KEY name ( time ) ) TYPE = MYISAM AUTO_INCREMENT =22;# MySQL returned an empty result set (i.e. zero rows). 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 ';# MySQL returned an empty result set (i.e. zero rows).

-- -- Clock for co' at line 22

i am using free hosting from http://micklemuckle.0lx.net also this is my first time i am working with php and my sql database so please help me please..................

-- 
-- Table structure for table `landofwap_toplist`
-- 
CREATE TABLE `landofwap_toplist` (
`id` int( 4 ) NOT NULL AUTO_INCREMENT ,
`name` varchar( 30 ) NOT NULL default '',
`pass` varchar( 30 ) NOT NULL default '',
`mail` varchar( 100 ) NOT NULL default '',
`link` varchar( 150 ) NOT NULL default '',
`logo` varchar( 150 ) default NULL ,
`cat` varchar( 20 ) NOT NULL default '',
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`lastout` datetime NOT NULL default '0000-00-00 00:00:00',
`lastin` datetime NOT NULL default '0000-00-00 00:00:00',
`incoming` int( 10 ) NOT NULL default '0',
`out` int( 10 ) NOT NULL default '0',
`total` int( 10 ) NOT NULL default '0',
`description` varchar( 150 ) NOT NULL default '',
PRIMARY KEY ( `id` ) ,
UNIQUE KEY `name` ( `name` ) 
) TYPE = MyISAM AUTO_INCREMENT =1;

-- Clock for counter reset `landofwap_clock`
-- 
CREATE TABLE `landofwap_clock` (
`time` datetime NOT NULL default '0000-00-00 00:00:00',
`name` varchar( 30 ) NOT NULL default '',
PRIMARY KEY ( `time` ) ,
UNIQUE KEY `name` ( `name` ) 
) TYPE =MyISAM;

use it

trogenhorse Junior · 30 posts #5

Thanks A lot................... thanks for helping me.................

one question i have in my mind is that will i have to upload all the files in the Root folder (MAIN PATH like http://www.......com/ROOT FOLDER), Can i upload files by creating a folder on the ROOT (LIKE www. ...... . com/Rootfolder/ toplist).

Will i have to make changes to database or config.php file.......... help me.... ONCE AGAIN..........

External image (may be gone) External image (may be gone) External image (may be gone) External image (may be gone)

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