Hi,
I just went through your discussion forum tutorial and got an error with first database querry
error is :
#1067 - Invalid default value for 'ID'
pls provide solution for this
my configuration is:
php version 5.5+
and using phpmyadmin for database work.
using xampp.
I just went through your discussion forum tutorial and got an error with first database querry
Code:
CREATE TABLE posts ( ID int(5) DEFAULT '0' NOT NULL auto_increment, TopicID int(5) DEFAULT '0' NOT NULL, Name varchar(50) NOT NULL, Email varchar(50) NOT NULL, Password varchar(50) NOT NULL, TimeStamp varchar(10) NOT NULL, Post text NOT NULL, PRIMARY KEY (ID) );
#1067 - Invalid default value for 'ID'
pls provide solution for this
my configuration is:
php version 5.5+
and using phpmyadmin for database work.
using xampp.
Comment