Quote:
Originally Posted by Cubical
How would I create a table to begin with? I see requestsql and req, is there a sendsql() or inputsql()
|
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.