Castillo Posted November 11, 2010 Share Posted November 11, 2010 hi, i have a small problem and big at same time, this function keeps returning syntax error function: executeSQLDelete ( "PlayersEmail2","mail = '".. address .."'',subject = '".. selected .."'" ) error: Database query failed: near "TEST": syntax error TEST = subject i hope someone can help me, thanks in advance. Link to comment
dzek (varez) Posted November 11, 2010 Share Posted November 11, 2010 executeSQLDelete ( "PlayersEmail2","mail = '".. address .."'[size=8][color=#FF0000]'[/color][/size],subject = '".. selected .."'" ) remove it Link to comment
Castillo Posted November 11, 2010 Author Share Posted November 11, 2010 it returns syntax error too: Database query failed: near ",": syntax error Link to comment
Static-X Posted November 11, 2010 Share Posted November 11, 2010 executeSQLDelete ( "PlayersEmail2","mail = '".. address .."'","subject = '".. selected .."'" ) This should return no syntax errors Link to comment
Castillo Posted November 12, 2010 Author Share Posted November 12, 2010 true, there aren't any syntax error now but it deletes all rows from the table not only selected Link to comment
Aibo Posted November 12, 2010 Share Posted November 12, 2010 there could be only 1 condition string in executeSQLDelete, and you have to use "AND" in it, if you need multiple conditions to be met: executeSQLDelete("PlayersEmail2","mail = '".. address .."' AND subject = '".. selected .."'") Link to comment
Castillo Posted November 12, 2010 Author Share Posted November 12, 2010 thanks, its working now, i'm still a little noob on sqlite . Link to comment
greacius Posted November 18, 2010 Share Posted November 18, 2010 You can also use the query function... it looks lot like mysql in php or any other language. 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