LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2005, 10:41 PM   #1
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Rep: Reputation: 15
PHP paging problem


ANYBODY can help me in PHP cause i have a problem in paging a search results. eg When i search in my database for a person from country of Malaysia, it will display the paging results in page B all the person that is from Malaysia ONLY.

I have three pages A, B and C

Page A is the search form.
Page B is the paging for the search results. Inside page B there's a link to page C

Page C display the person personal data.

does anyone have a solution on this...........HELP!!!!!!!!
 
Old 02-22-2005, 11:24 PM   #2
Ravo
Member
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 41

Rep: Reputation: 15
Well, I happen to be a skript kiddie myself. Can you give us the source or at least tell us what it's doing wrong now?

Code:
If(empty($search) && empty($person)){
    Show_search_stuff();
    }
elseif(!empty($search) && empty($person)){
    show_search_results();
    }
elseif(empty($search) && !empty($person)){
    show_info_on_person();
    }
else{
    error();
    }
There are a million ways of doing it.

EDIT: I did a layered forum in a similar fashion to that, and it worked wonders.

Last edited by Ravo; 02-22-2005 at 11:25 PM.
 
Old 02-22-2005, 11:49 PM   #3
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Original Poster
Rep: Reputation: 15
PHP paging problem

Can u give me your email Ravo so that i can attach the files to you.............
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging data from XML with PHP Boby Programming 1 03-23-2005 09:57 AM
PHP paging problem jojojo Linux - Newbie 1 02-24-2005 12:13 PM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM
virtual memory paging problem on install j_hart Linux - Software 0 10-13-2003 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration