1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 How To Find A Post In Database by Searching Post ID?

Discussion in 'XenForo Questions and Support' started by DRE, Aug 4, 2013.

  1. DRE

    DRE Well-Known Member

    What's an sql query for pulling up a xf_post in the database only by posting the post id?
     
  2. MattW

    MattW Well-Known Member

    SELECT * FROM xf_post WHERE post_id = "xxx"
     
    DRE and Chris D like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    SELECT *
    FROM xf_post
    WHERE post_id = ?
     
    MattW and DRE like this.
  4. DRE

    DRE Well-Known Member

    thanks!
     
  5. DRE

    DRE Well-Known Member

    Is it okay to delete a post directly from the database if the post was made by a guest?
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    You should use the HTML front end whenever possible.

    If you are going to be running queries directly on your database, I highly suggest backing up your database before you perform any.
     

Share This Page