Can any body here help me out ?I m new to PHP n MYSQL....
I m using PHP 5 +MySQL + Apache.
I need a code in PHP which does the following ?
When i click the first button it goes to the first item in the table
When i click the last button it goes to the last item in the table
When i click the next button it goes to the next item in the table
When i click the last button it goes to the last item in the table.
N i have to show the result in a textbox.
Please help me guys.Atleast tell me idea how to do it.
Using Access and VB was very easy.But i dont know how to do it in PHP n MySQL.
Help needed in PHP + MySQL
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
This is a really vague question. By "table" do you mean a table in a relational database or a table in a markup language?
What you describe sounds like pagination except with items in a table rather than pages of content. Then again it could just be JavaScript if this is simply for dynamic content on a single page.
Perhaps you could give us a little more info on what this is to be used for because there's not really alot we can say with the information we have.
What you describe sounds like pagination except with items in a table rather than pages of content. Then again it could just be JavaScript if this is simply for dynamic content on a single page.
Perhaps you could give us a little more info on what this is to be used for because there's not really alot we can say with the information we have.
Ok consider i have a list of employees which is stored in the database .
I have to show their details one by one .
By clicking the buttons (next ,previous) i show the details of the next /previous employee.
By clicking the buttons (first ,last) i show the details of the first /last employee.
I thing i have to use the SQL command fetch_row() or something.
Can anyone help me in this ???
I have to show their details one by one .
By clicking the buttons (next ,previous) i show the details of the next /previous employee.
By clicking the buttons (first ,last) i show the details of the first /last employee.
I thing i have to use the SQL command fetch_row() or something.
Can anyone help me in this ???