View Single Post
  #7  
Old 03-11-2010, 11:37 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
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

Last edited by Cubical; 03-11-2010 at 11:43 AM.. Reason: edit edit edit: i think i found it this time
Reply With Quote