I have been programming with asp for years now but I am very new to php.
I want to pull the data from the mysql database I created.
If I was to do the same job with asp;
<%
Set ObjConn = CreateObject("ADODB.Connection")
ObjConn.Open ("DRIVER={SQL Server};SERVER=serveraddress;DATABASE=databasename;UID=username;PWD=password")
SQL = "SELECT * FROM PRODUCTS ORDER BY PRODUCTNAME DESC"
Set objProducts = objConn.Execute(SQL)
Do While not objProducts.EOF
%>
<%=objProducts("PRODUCTNAME")%>
<%
objProducts.MoveNext
Loop
%>
How do I do same thing with php?