I am using phpmyadmin, but I do not think I am setting up the table the correct way. This is what I am doing:
1.) From main page clicking:
Create new table on database, after I have entered the name logins and the fields 2.
2.) Now it takes me to a screen With the columns :Field, Type ,Length/Values*, Attributes, Null, Default**, Extra
There are 2 rows underneath these columns in the first row, I give the field name: username , the type is text, length/ values is blank, attributes is blank, null is set to not null, default is blank, extra is blank, and the little check boxes: primary, index, unique, and full text is unchecked.
Now, the second row the field named login, the type is datetime,
length/values is blank, attributes is blank, it is not null, and default is Now() , extra is blank, and primary, index, unique, and full text is unchecked.
3.) I click save, and it gives a little box on the screen saying:
Table logins has been created.
SQL-query:
CREATE TABLE logins (
username TEXT NOT NULL ,
login DATETIME DEFAULT 'Now()' NOT NULL
);
4.) Now, when I click to see the actual table, their are the collumns like field, type, attributes, null, etc. and then, under those in rows is what I just entered except the default is no longer now(), but 0000-00-00 00:00:00
5.) Now, in another table that a friend set up, the collumns are not like field, type, attributes, but they are what I think you are telling me to make. The collumns are like username, password, etc. Then, in rows beneath them there are peoples usernames and passwords. I am pretty sure this is what you want me to do,(because on the table my friend set up, there is a Insert new row button, butnot in the one I set up) and then enter in a username , and the other collumn will give the time. However, I do not see how to do this.
Thanks (and sorry for the other topics)