PHP - cambiar codigo de asp a php

 
Vista:

cambiar codigo de asp a php

Publicado por felipe largacha (34 intervenciones) el 10/12/2004 22:26:23
alguien me podria decir como se escribe este codigo en php

<FORM ACTION="edit_links_action.asp" METHOD="post">

<TABLE BORDER="1">
<%
set outpostDB = Server.CreateObject("ADODB.Connection")
outpostDB.Open "outpost"

set tableSet = Server.CreateObject("ADODB.RecordSet")
tableSet.Open "select * from links order by link_id", outpostDB, adOpenForwardOnly, adLockOptimistic, adCmdText

while not tableSet.EOF
%> <TR>
<TD>
<INPUT TYPE="checkbox" NAME="p_delete"
VALUE="<%=tableSet("link_id")%>">
</TD>
<% p_numberOfColumns = tableSet.Fields.Count
%> <TD>
<A HREF="edit_links_rec.asp?p_link_id=<%
Response.Write tableSet("link_id")%>">
<%= tableSet.Fields(0).Value %>
</A>
</TD>

<% for col = 1 to (p_numberofColumns-1)
%> <TD>
<%= tableSet.fields(col).Value %>
</TD>
<% next %>
</TR>
<% tableSet.MoveNext
wend
tableSet.Close
set tableSet = Nothing
%>

</TABLE>
<INPUT TYPE="submit" VALUE="Delete Checked Rows">
</form>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder