Joined: 01 Mar 2002
Posts: 8
Location: Karachi, Pakistan
Posted:
Wed Mar 06, 2002 10:44 am (22 years, 3 months ago)
Can anyone please tell me the php code for this asp code snippet ... thanks!
i=0
Do while not rs.EOF and i < rs.PageSize (rs = recordset property of ASP)
if i mod 2 = 0 then
Response.Write "<tr>"
end if
imgsrc = rs("imgsrc")
imgdesc = rs("details")
response.write "<img src="& imgsrc &"><br><b>"& imgdesc 8"</b>"
i = i + 1
if i mod 2 = 0 then
Response.Write "</tr>"
end if
rs.MoveNext
loop
if i mod 2 then
'create the last column
Response.Write "<td> </td></tr>"
end if
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.