trajik Posted August 13, 2010 Author Share Posted August 13, 2010 Check if your query with ' instead of ` will work. I don't understand... Link to comment
50p Posted August 13, 2010 Share Posted August 13, 2010 mysql_query( connect_mysql, "SELECT * FROM 'players' WHERE charName='" .. getPlayerName( theUser ) .. "'" ) or even mysql_query( connect_mysql, "SELECT * FROM players WHERE charName='" .. getPlayerName( theUser ) .. "'" ) Link to comment
dzek (varez) Posted August 13, 2010 Share Posted August 13, 2010 wtf? MySQL query with single quote -> ' around table name? This "weird single quote" -> ` its for surrounding table/column names (not needed, until your table/column name is same as one mysql reserved words, like "date", "table", "create", etc) And normal single quote -> ' its for surrounding values. SELECT * FROM 'aaa' LIMIT 0, 30 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''aaa' LIMIT 0 , 30' at line 1 Link to comment
trajik Posted August 14, 2010 Author Share Posted August 14, 2010 yeah still not what I'm looking for...in a nutshell this is what I mean function changeTheButtons() local query = (look for the players account name) if (query) then while true local find =(look back at the players account name and see if they have a character) if(find) then spawnCharacter() else createCharacter() end end freeResults.....ect. end I know it's not real code....but that's what I mean and what I need. Link to comment
dzek (varez) Posted August 14, 2010 Share Posted August 14, 2010 Dump your database, using any software for MySQL, but in SQL code (CREATE TABLE ... etc), not in the way as above. And: I removed your "bump". Do not bump your post. Especially when there are no others topics waiting for reply, and when only 2 hours passed. Also do not double,triple,quadruple,multi post. I will remove all your bumps in the future. Thank you for understanding 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