Jump to content
  • 0

Problem with query_sql


Question

8 answers to this question

Recommended Posts

Posted (edited)

That send me a db bug when I write "test" in to the input.

 

http://imageshack.us/photo/my-images/547/sinttuloqlp.png/

 

input .@amigo1$;
			query_sql "SELECT online FROM `char` WHERE `name` = "+.@amigo1$,.@amigo1[0];

 

 

And I have that.

 

 

EDIT: I put 

query_sql "SELECT online FROM `char` WHERE `name` = "+"'"+.@amigo1$+"'",.@amigo1[0];

 

 And then it work, very thank you :)

Edited by Edwardlol
Posted (edited)

I don't understand it :/ Can you make a example with my data?

 

I put query_sql "SELECT online FROM `char` WHERE `name` = " +.@amigo1$,.@amigo1[0]; and still got the same error.

Edited by Edwardlol
Posted (edited)

so? problem in where?
 
I said you need to make searching like this
 

`name` = '<string>'


 
if you don't know how to insert variable, read how you did in #1
 

WHERE name = " +.@amigo1$
Edited by goddameit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...