Jump to content
xisto Community
Sign in to follow this  
clovis

Displaying Data From Mysql?

Recommended Posts

how can i display data from mysql with php, just that on one page i want to display only the first 10 things and the next page the next 20 ...etc.. how can i do that?

Share this post


Link to post
Share on other sites

Doing this has got nothing to do with php it self, or php library for mysql, but with the sql statement you send, you just have to stablish limits for your query results, like this

 

 

SELECT * FROM TABLE LIMIT 0, 10

the first argument to LIMIT it would be the offset, and the second one is the number of rows to show, you just have to play with that, but this is really something you shouldn't do, because although it's not a difficult thing to do, you can find that script anywhere

 

try searching in phpclasses.org, I've seen some of those there

 

just write "paging" in the search textfield

Share this post


Link to post
Share on other sites
How do I put data from mysql in form of checkboxes?Displaying Data From Mysql?

I need to put data from mysql into checkboxes, select option aswell, so that it exports and prints a table! 

Any help, would be appreciated!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.