The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP – PDO database use

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #40375

    I am still using good ol’ mysql in order to access databases. It’s served me well, and I can use it pretty well without issue.

    I know it’s depreciated so I should be moving on, so I read up about PDO and mysqli.
    [PDO DB Access Tutorial]( “PDO DB Access Tutorial”)

    It stresses prepared statements. This brings me to my question:
    I use HTMLPurifier, so what does preparing statements do that I will benefit from? Can I dump HTMLPurifier?

    Thanks for any guidance!


    That’s a very good question. I tend to open the connection right before I begin my first query, then close it after the last one. I figured opening a new connection for each operation would increase server processes, but I’ve never actually verified if that would be the case.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.