Perhaps if you told us the actual symptoms we might be able to be of assistance with what (from what you have stated) appears to be your homework. LOL!
Without further information, from what I can see, it may not work because you have already tested it once, and the table you are trying to create already exists.
well I had everything working right. Then put all my files from kodamakage.frih.net to kodamakage.com.(I stupidly deleted all the databases) at this point it stoped working. When I made the database again and ran the setup it says that it can connect to the database, but it wont make the table.(checking in phpmyadmin to see if there really was a table or not.) I have tried changing the names of things, and still nothing.
Use mysql_error() to print the exact error. If there is a connection or permission problem, you will come to know.
@Traveller
1. Yes it was working fine, about ten minutes before I posted.
3a. 10 minutes ago from my first post.
3b. when I remade the database.
3.1.both were on fri hardware.
3.2. Have no idea.
3.3. same location, same username, etc.
@kv thanks for that idea, forgot about that..
"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 '(500) NOT NULL, PRIMARY KEY (`id`), UNIQUE id (`id`), KEY id_2"
@krazycapital if I took out the // in //mysql_query($query); wouldnt that just be trying to run the query two times?
so yah..... for the moment I did a quick fix and made the text a varchar... But that wont work for everything... So what was I stupidly doing wrong with the text? And thanks again for all your help. I would have just given up and failed the project.