theAntiGeek Posted May 24, 2006 Share Posted May 24, 2006 hiI am trying to create a picture gallery for my website. i want the pictures to be displayed in a table, 3 columns wide and how ever many rows it requires depending on the amount of pictures are in the database.so it would look like this-> |P|P|P||P|P|P||P|P|P|etc(if "P" stands for a picture)can anyone tell me how to make it so the pictures are displayed like this?i can currently make it display like this ->|P||P||P|etcor if anyone knows of any tutorials that would be much appreciattedi am using coldfusion with sql to do this.cheers Link to comment Share on other sites More sharing options...
aspnetguy Posted May 24, 2006 Share Posted May 24, 2006 You could use a table to display them in a 3x3 grid. Link to comment Share on other sites More sharing options...
theAntiGeek Posted May 24, 2006 Author Share Posted May 24, 2006 You could use a table to display them in a 3x3 grid.<{POST_SNAPBACK}> thanks for the help.problem is i already have the data being imported from the database being put into a table. it works by creating a new table row for each picture imported. but i want it work by putting three pictures into a row before starting a new row. does that make sense? any help is welcomethanks Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 24, 2006 Share Posted May 24, 2006 It does make sense I however, don't know anything about Coldfusion.For that manner, I don't have a clue in what language I should give an example :)*knows a lot, but nothing about CF* Link to comment Share on other sites More sharing options...
aspnetguy Posted May 25, 2006 Share Posted May 25, 2006 It does make sense I however, don't know anything about Coldfusion.For that manner, I don't have a clue in what language I should give an example :)*knows a lot, but nothing about CF*<{POST_SNAPBACK}> Same boat I could give you an example in PHP, ASP, or ASP.Net, but not CF And CF is very different from the others.Skemcin would know...he is the resident CF expert. Link to comment Share on other sites More sharing options...
pulpfiction Posted May 25, 2006 Share Posted May 25, 2006 Hi,We can set the number of columns required for the table being outputted. This can be any number of columns ranging from 1 and up.<cfset columns = 4>http://www.cfcentral.com.au/main.cfm?secti...nt&contentid=11 Link to comment Share on other sites More sharing options...
theAntiGeek Posted May 25, 2006 Author Share Posted May 25, 2006 Hi,We can set the number of columns required for the table being outputted. This can be any number of columns ranging from 1 and up.<cfset columns = 4>http://www.cfcentral.com.au/main.cfm?secti...nt&contentid=11<{POST_SNAPBACK}> cheers pulp that worked a treat! Link to comment Share on other sites More sharing options...
Tarte Posted May 25, 2006 Share Posted May 25, 2006 Hi,We can set the number of columns required for the table being outputted. This can be any number of columns ranging from 1 and up.<cfset columns = 4><{POST_SNAPBACK}> mmm didn't know about this, thanks for the information that'll be helpful for many things Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now