dynamic variables

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
matt1234
Forum Commoner
Posts: 44
Joined: Wed Nov 26, 2008 9:43 pm

dynamic variables

Post by matt1234 »

I am trying to figure out the best way to dynamically show various values from a SQL database.
What I want to try to do is show about 10 values at a time from a table and then there would be a link to view the next 10, and previous 10, etc.
I use PHP but I'm trying to find a way to have the values appear dynamic when switching which 10 values to view. Since PHP is a parser, I can save all of the values to PHP variables but I can't exactly make PHP stuff dynamic that I'm aware of. I don't want the source to have every table value shown, though. I thought of using Javascript to show this stuff dynamically but the values would still all have to be stored in the source code (right?)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: dynamic variables

Post by Weirdan »

Keywords for you to google for: pager/pagination, ajax
Post Reply