Quote
I did made a mysql database and table and used the script above. But I'm having an error:
The second argument was not a file, it was directory.
You do not have MySQL command line interface (CLI) installed. You have to install it.
Quote
Do I also have to create the fields on the table that I made or this script will take care of it?
Yes you should do.
Quote
I did tried making the fields too:
Did i do it right?
No. All fields cannot be integers. You could use this kind of statement to create a table:
CREATE TABLE `stored_messages`.`sms_log` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`type` varchar( 16 ) NOT NULL ,
`sent` datetime NOT NULL ,
`received` datetime NOT NULL ,
`sender` varchar( 32 ) NOT NULL ,
`receiver` varchar( 32 ) NOT NULL ,
`status` char( 3 ) NOT NULL ,
`msgid` char( 3 ) NOT NULL ,
`text` varchar( 255 ) NOT NULL ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM ;
'mysql' Syntax Highlight powered by GeSHi