Hello so I am currently in the need of some help in terms of using GetAsync,

I am trying to use GetAsync to get a string from a specific row from my website, however the php wont work as intended..., here is what I currently have;

`

query("SELECT * FROM onlineservers WHERE gid='$gid'"); echo($result["cmd"]); } ?> `

I have removed the login info of the database for obvs reasons.

2 comments

0

This isn't a PHP help site.

0

Your code is vulnerable to SQL injection. Use prepared statements, not string interpolation.