Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Array in php - Urgent help, please

Author  Topic 

simflex
Constraint Violating Yak Guru

327 Posts

Posted - 2004-02-25 : 09:00:15
Hello multi-talented gurus.

The following array list is written in php

Do you know how to translate this to asp?
It is currently written in php and I don't understand php, for now.

I have managed to translate most of the code but I am stuck on this one.

Here it is:

city_list = array(55=>"Fulton County",
5=>"Atlanta",
10=>"Alpharetta",
15=>"College Park",
20=>"East Point",
25=>"Fairburn",
30=>"Hapeville",
35=>"Mountain Park",
40=>"Palmetto",
45=>"Roswell",
50=>"Union City");

Thanks in advance.

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2004-02-25 : 09:25:07
The following is a good link for general ASP Arrays info:

http://www.aspin.com/home/tutorial/variable/arrays?pg=5&order=desc

<%
Dim city_list(55)

city_list(5)="Atlanta"
city_list(10)="Alpharetta"
city_list(15)="College Park"
city_list(20)="East Point"
city_list(25)="Fairburn"
city_list(30)="Hapeville"
city_list(35)="Mountain Park"
city_list(40)="Palmetto"
city_list(45)="Roswell"
city_list(50)="Union City"
city_list(55)="Fulton County"

For i=0 to UBound(city_list)
If i mod 5=0 then
response.write city_list(i) & "<br>"
End If
Next
%>
Go to Top of Page

simflex
Constraint Violating Yak Guru

327 Posts

Posted - 2004-02-25 : 09:38:27
Very cool ehorn!
and very rapid response!!
Thanks a million!!!
Go to Top of Page
   

- Advertisement -