Page 1 of 1

help me from the php code

Posted: Mon Jun 04, 2007 2:59 am
by anil
How to access the same catid when i am using the next previous buttons and in this i am showing the images limited that is 9

what i need is to get the catname and with that catid and imgid this tblcat and tblimage are two different tables

please help me i am in a big trouble




thanks in advance

Posted: Mon Jun 04, 2007 3:10 am
by volka
You have to explain a lot more before your question has a remote chance of beeing understood by people that are not you and and that don't see all the code you see.

Posted: Mon Jun 04, 2007 6:45 am
by salmanshafiq
Please explain you question what you exactly need. How can we help you but if your question is not appropriated, so please Explain it

Descriptive subjects

Posted: Mon Jun 04, 2007 10:36 am
by RobertGonzalez
No the air is too clear.

See how vagueness makes people wonder what you meant?
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Posted: Mon Jun 04, 2007 5:44 pm
by zell11
What i think he/she is trying to say is that is that they have a limit of 9 images per page and they want multiple pages per catagorey.

well best way to do this is create a query that limits the selection to the page ou are on.

$endrows = ($page * $maxperpage)

$startrows = $endrows - $maxperpage

them limit it to

SELECT * FROM images WHERE catid = $catid ORDER BY imgid LIMIT $startdown, $endrows;

hope it helps