473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

createing dynamic new pages

Heya guys,

I an having trouble building a page that dynamically expands.

The page fundimentally works fine, but at the moment i am storing about 45 image locations in my db.

I am having real difficulty finding some understandable examples of how to account for a potentially infinite number of images so the user can view the gallery say 20 images at a time on a page to cut down loading - currently thay are all on one page. i know, not good :( .

thx again for ur help
Apr 2 '07 #1
3 1119
Heya guys,

I an having trouble building a page that dynamically expands.

The page fundimentally works fine, but at the moment i am storing about 45 image locations in my db.

I am having real difficulty finding some understandable examples of how to account for a potentially infinite number of images so the user can view the gallery say 20 images at a time on a page to cut down loading - currently thay are all on one page. i know, not good :( .

thx again for ur help
You'll probably need to run two queries against your database. The first to get the count of images that may be returned. The second to return x images per page. Knowing these two values you should be able to estimate the total number of pages the images are spread over. As you move from page to page alter the second query to return the appropiate subset of images.
Apr 3 '07 #2
Motoma
3,237 Expert 2GB
The solution depends on what type of database you are using.
MySQL supports the LIMIT syntax, which is used like this:

Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.     *
  3. FROM
  4.     images
  5. LIMIT 5,30
  6.  
This will retrieve 30 rows beginning at row 6.

MSSQL has the TOP clause, and other DBMS have similar syntaxes.
Apr 3 '07 #3
thanks guys, i'll have a closer look at those
Apr 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: only_me | last post by:
Not a coding question as such but highly related to asp/dynamic pages issues : has anyone any suggestions on the following ASP sites are generally (always) of a dynamic nature, pages can be...
3
by: K.S.Liang | last post by:
Hi all, 1> If there are more than one dynamic linking libraries in the file system, how do I know which one is loaded into system? Any C library or system call can tell me which *.so or *.sl is...
10
by: moondaddy | last post by:
I'm writing an ecommerce app in asp.net/vb.net and need to make the pages searchable and crawlable by spiders, particularly Google's. As far as I know, if my pages's contents are mostly populated...
5
by: David Thielen | last post by:
Hi; I am creating png files in my ASP .NET app. When I am running under Windows 2003/IIS 6, the file is not given the security permissions it should have. It does not have any permission for...
8
by: Sandy Pittendrigh | last post by:
I have a how-to-do-it manual like site, related to fishing. I want to add a new interactive question/comment feature to each instructional page on the site. I want (registered) users to be able...
10
by: maxvalery | last post by:
Because dynamic pages do not get indexed well in search engines, is there a decent API out there to parse through the site and write pages as plain html automatically? I noticed some WordPress and...
10
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
0
by: Alexandre Bergel | last post by:
Dear colleague, Please, note that after the workshop, best papers will be selected, and a second deadline will then be set regarding preparation of the Electronic Communications of the...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.