Oversætte fra asp til php
er der nogen der kan oversætte nedenstående fra asp til php - jeg kan ikke selv:('MemberID er brugerens id (altså login-id'et)
strSQL="select M_NAME, M_FIRSTNAME, M_LASTNAME, M_EMAIL, M_SEX, M_AGE FROM FORUM_MEMBERS WHERE MEMBER_ID = " & MemberID
set rs = dataConn.execute(strSQL)
if not rs.EOF then
strMemberID = memberID
strEmail = rs("M_EMAIL")
strNick = rs("M_NAME")
strName = rs("M_FIRSTNAME") & " " & rs("M_LASTNAME")
if not rs("M_SEX") = "" then
if rs("M_SEX") = "Mand" then
strSex = "m"
else
strSex = "f"
end if
end if
strAge = rs("M_AGE")
end if
rs.close
'husk også at lukke db-conn
response.redirect "http://www.selvet.dk/chat/commonGateway.asp?channelID=" & trim(Request.QueryString("channelID")) & "&foreignChannelID=" & trim(Request.QueryString("foreignChannelID")) & "&memberID=" & strMemberID & "&nick=" & server.urlencode(strNick) & "&email=" & server.urlencode(strEmail) & "&name=" & server.urlencode(strName) & "&sex=" & strSex & "&age=" & strAge