4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 asp 2 php
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
razz
Junior WebHelper
Junior WebHelper


Joined: 01 Mar 2002
Posts: 8
Location: Karachi, Pakistan

PostPosted: Wed Mar 06, 2002 10:44 am (22 years, 1 month ago) Reply with QuoteBack to Top

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>&nbsp;</td></tr>"
end if

I am using MySQL btw ...

________________________________
http://www.getwallpapers.tk
http://nufc.host.sk

Razz
OfflineView User's ProfileFind all posts by razzSend Personal MessageVisit Poster's WebsiteYahoo MessengerMSN MessengerICQ Number
mattryan
Ex Team Member



Joined: 08 Jan 2002
Posts: 22
Location: USA

PostPosted: Thu Mar 07, 2002 4:42 pm (22 years, 1 month ago) Reply with QuoteBack to Top

You can convert the code yourself using the asp2php program. http://asp2php.naken.cc/download.php

________________________________
http://beta.resource-locator.com/
OfflineView User's ProfileFind all posts by mattryanSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.


Page generation time: 0.114233 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme