Quote:
Originally Posted by cbk1994
The last parameter is whether or not to expect a response, so you would do
PHP Code:
requestsql("CREATE TABLE bank (account TEXT UNIQUE NOT NULL DEFAULT '', money INT NOT NULL DEFAULT 0)", false);
or, if using a wrapper like the one specified earlier
PHP Code:
req("CREATE TABLE bank (account TEXT UNIQUE NOT NULL DEFAULT '', money INT NOT NULL DEFAULT 0)", false);
You might also want to look for examples in the code gallery, such as this one by Switch.
|
I'm looking at this
http://www.w3schools.com/sql/sql_create_table.asp and the post on the wiki I do not see what the TEXT UNIQUE NOT NULL DEFAULT is for.
edit: nevermind I found it.
edit edit: no i didnt ;[
edit edit edit: i think i found it this time