help me from the php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anil
Forum Newbie
Posts: 12
Joined: Thu May 24, 2007 10:52 pm

help me from the php code

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
salmanshafiq
Spammer :|
Posts: 2
Joined: Sat May 27, 2006 7:54 am
Contact:

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Descriptive subjects

Post 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.
zell11
Forum Newbie
Posts: 7
Joined: Mon Jun 04, 2007 5:24 pm

Post 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
Post Reply