Hello I am working on a site that uses expedias api. Basically I get a number of people per room, and I want to echo out a little man image for each person. So if I have occupancy of 5 for example and I need to echo 5 tags with the little man as a src. Any idea how to do this??
Share
Well let’s say you have the amount of people stored in a variable.
You can then plug in that number into a
for loop, and have the program cycle through that many times.You can read more about control structures here.