Java JDBC Query with variables?
<pre><code>String poster = "user";

Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM `prices` WHERE `poster`="+poster);
</code></pre>

<p>This does not work.Any tips or tricks would be appreciated. </p>
