String myquery="INSERT INTO likestatus values(?,?)";
PreparedStatement st1=con.prepareStatement(myquery);
st1.setString(1,Integer.toString(rid));
st1.setString(2, id);
st1.executeUpdate(myquery);
the error I am getting is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '?,?)' at line 1