I'm getting an error, when I try to create a new table.
And I'm getting this error:
Any ideas why?
Note: The query has no problems locally. When I try to run it through PHPmyAdmin on my webhost it comes back with this error.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Code:
CREATE TABLE `comments` (
`id_coment` int( 11 ) NOT NULL AUTO_INCREMENT ,
`n_person` varchar( 50 ) default NULL ,
`email` varchar( 100 ) default NULL ,
`comen` text,
`place` varchar( 20 ) default NULL ,
`comment_date` timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( 'id_coment' )
)
Code:
You have an error in your SQL syntax near 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY ('id_coment')' at line 7
Any ideas why?
Note: The query has no problems locally. When I try to run it through PHPmyAdmin on my webhost it comes back with this error.
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.