dynamic variables
Posted: Wed Jul 15, 2009 4:06 pm
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?)
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?)