code ideas for a php / mysql script.
Posted: Thu Jun 06, 2002 12:49 am
newbie here. I have wrote scripts in .t and .tea for over 3 years @work.
I'm switching over to php/mysql for my land cruiser site. I would like ideas
and code examples on how to do a certain operation.
I have a vehicle registry where a user enters their info along with
the info of their cruizer. I know how to enter and retrieve the data with no problem at all.
for example:
lets say I have 30 entries into the database. when a user clicks on my reg
index page I would like to grab the first 5 entries (1-5) and display them, with a next 5 link at the bottom linking to the next 5 entries in the db. On that page it would show a previous and next link also.
how would everyone here go about doing the count in the for() to only showing 5 at a time.
thanks,
rodney
I'm switching over to php/mysql for my land cruiser site. I would like ideas
and code examples on how to do a certain operation.
I have a vehicle registry where a user enters their info along with
the info of their cruizer. I know how to enter and retrieve the data with no problem at all.
for example:
lets say I have 30 entries into the database. when a user clicks on my reg
index page I would like to grab the first 5 entries (1-5) and display them, with a next 5 link at the bottom linking to the next 5 entries in the db. On that page it would show a previous and next link also.
how would everyone here go about doing the count in the for() to only showing 5 at a time.
thanks,
rodney