Page 1 of 1

I can't create table in phpMyAdmin

PostPosted: 16. December 2007 20:52
by in2mobile
I am trying to create a table inside of the "test" database that comes with PhpMyAdmin. I set up the fields and everything, but when I try to save the table a message pops up and reads "This is not a Number". I don't understand why this is happening. Here is how I have the table set up.


Field Type Length/Values Collation
----- ------ ----------------- ------------

id Varchar Utf8_unicode_ci

email Varchar 50 Utf8_unicode_ci

password Varchar 50 Utf8_unicode_ci

site Varchar Utf8_unicode_ci

logeden Int Utf8_unicode_ci


Attributes Null Default Extra
----------- ------ ---------- -------
not null auto_increment

not null 50

not null 50

null

not null



Storage Engine Collation
------------------ -------------
MyISAM utf8_unicode_ci


these are the values that I have. Any help with figuring out why I can't save this table is greatly appreciated.

PostPosted: 17. December 2007 13:43
by Scory
It says what it means "This is not a number":

id Varchar Utf8_unicode_ci


You declared id as "auto_increment" which means, it MUST be a number (a digit), but you declared it as a string ("varchar"). You must change it to "int".

Regards
Scory

PostPosted: 18. December 2007 10:08
by in2mobile
Scory thanks for the advice. I seem to not be able to get down how to exactly use phpmyadmin. Are their any good tutorials out there?

PostPosted: 23. December 2007 08:29
by skuipers
Why don't you have a look at the phpMyAdmin website?