K4stic Posted May 22, 2013 Share Posted May 22, 2013 with what function dbExec dbQuery and how like i wonna create a table bans and to have indexes: username serial Link to comment
K4stic Posted May 22, 2013 Author Share Posted May 22, 2013 this using to connect to the MySQL or SQL no to create tables Link to comment
iPrestege Posted May 22, 2013 Share Posted May 22, 2013 'dbExec' Use this function to create a table . Link to comment
Tete omar Posted May 22, 2013 Share Posted May 22, 2013 MySQL syntax looks like SQLite one, so you can try reading this function: executeSQLQuery Other than that , i don't know. Link to comment
K4stic Posted May 22, 2013 Author Share Posted May 22, 2013 executeSQLQuery This function executes an arbitrary SQL query and returns the result rows if there are any. It allows parameter binding for security (SQL injection is rendered impossible). that function SQL only i need MySQL Link to comment
Tete omar Posted May 22, 2013 Share Posted May 22, 2013 And i said the syntax is same with SQLite Link to comment
Jacob Lenn Posted May 22, 2013 Share Posted May 22, 2013 dbQuery(handler, "CRATE TABLE IF NOT EXISTS name(column1 INT, column2 VARCHAR(255))") Link to comment
Tete omar Posted May 22, 2013 Share Posted May 22, 2013 dbQuery(handler, "CRATE TABLE IF NOT EXISTS name(column1 INT, column2 VARCHAR(255))") Thats what i meant. Link to comment
K4stic Posted May 22, 2013 Author Share Posted May 22, 2013 so this is good? dbQuery(handler, "CREATE TABLE IF NOT EXISTS accounts(username, password)") Link to comment
K4stic Posted May 22, 2013 Author Share Posted May 22, 2013 at connection just don't show it just asking if i do true the code Link to comment
Kenix Posted May 22, 2013 Share Posted May 22, 2013 Use dbExec if you don't want to do something with result. In your case. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now