Sql help

Discussion in 'Plugin Development' started by PrivateAlpha, Nov 14, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    PrivateAlpha

    I get this error: Unknown column 'PrivateAlpha' in 'where clause'

    for this line of code:
    Code:
    ResultSet set = stmt.executeQuery("SELECT * FROM " + table
                        + " WHERE Username=`" + player+"`;");
    I've tried replacing the ` with ' and without anything but still the same error.

    Any help?

    Bah was A logical error sorry. Its fixed

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
Thread Status:
Not open for further replies.

Share This Page