Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]How do you get_dir_file_info date into mysql?
#3

[eluser]zimco[/eluser]
Tried your suggestion like this:

Code:
DROP TABLE IF EXISTS `html_racefiles`;
CREATE TABLE IF NOT EXISTS `html_racefiles` (
  `file_id` int(11) NOT NULL auto_increment,
  `file_name` varchar(255),
  `server_path` varchar(255),
  `size` int(11),
  `date` unix_timestamp,
  `relative_path` varchar(255),
  PRIMARY KEY  (`file_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

and it errors out with:
Quote:#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 'unix_timestamp,
`relative_path` varchar(255),
PRIMARY KEY (`file_id`)
) ENG' at line 6

Any other suggestions?


Messages In This Thread
[SOLVED]How do you get_dir_file_info date into mysql? - by El Forum - 05-25-2009, 11:36 AM
[SOLVED]How do you get_dir_file_info date into mysql? - by El Forum - 05-25-2009, 11:38 AM
[SOLVED]How do you get_dir_file_info date into mysql? - by El Forum - 05-25-2009, 12:21 PM
[SOLVED]How do you get_dir_file_info date into mysql? - by El Forum - 05-25-2009, 02:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB