Over the years, I've come to use a pretty standard version of this ASP code. It connects to a database (be it MSSQL or Access) and loops through records and displays them then closes the DB connection.
I'm moving to a PHP environment and wondered what the PHP equivalent of this code snippet might look like.
Let's assume the database is "localhost" as it's MySQL.
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open Application("features") (this uses a global.asa with a path to the MSSQL db)
sql = "SELECT * FROM whatever_table order by id desc"
Set RS = Conn.Execute(sql)
'iCounter = 1
Do Until RS.EOF
reviewID = RS("reviewID")
title = RS("title")
bluray = RS("bluray")
prevDate = curDate
Set RS = nothing%>