Android Question PostString Too many parameters

makis_best

Well-Known Member
Licensed User
Hi.

I try to use HttpUtils2 and okHttp but I get that error when I compile.
Why?

Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Error occurred on line: 75
job999.PostString("https://192.168.1.1/droid/conn.aspx", "SELECT Code, Name, Gid FROM salesperson ORDER BY name")
Word: SELECT Code, Name, Gid FROM salesperson ORDER BY name
 

Sandman

Well-Known Member
Licensed User
It's good you solved your problem, but I'd like to take the opportunity to recommend not sending actual SQL queries to the server. I see you're using https, but I still consider it an extreme security risk, what you're doing.

I'd recommend creating a real API on the server instead, that contains the queries and simply return the answers to the client.
 
Upvote 0
Top