PHP/MySQL Query from Word Press

Discussion in 'PHP' started by jmweb, Apr 3, 2007.

  1. #1
    I am querying a blog entry into word press and everytime I query it in php it shows the text from the database however the text is not formatted like the database is. Basically, php/the query is ignoring the spacing that is applied in the database. How do I query the database to show EXACTLY as formatted the entry within the db?
     
    jmweb, Apr 3, 2007 IP
  2. jmweb

    jmweb Peon

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Having stupid moment where I can't find the code!
     
    jmweb, Apr 3, 2007 IP
  3. jmweb

    jmweb Peon

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The code I was looking for was nl2br for those that are interested :)
     
    jmweb, Apr 3, 2007 IP