Re: php pager-close but not no cigar!

From: Date: Sun, 30 Apr 2006 13:50:26 +0000
Subject: Re: php pager-close but not no cigar!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235148@lists.php.net to get a copy of this message
Ross wrote:
I have almost got my pager working here (just hit submit to return the full db) http://scottishsocialnetworks.org/editor2.php http://scottishsocialnetworks.org/editor2.phps The pager works fine until you hit any of the other links at the bottom then I get a blank page.
I get a login page because the pages links refer to editor.php. Any ideas? 1. your using $_GET['page'] and $_POST['pageNum'] - that might be related to the problem. 2. check your error log and/or turn on display_errors. 3. getting a blank page often happens if a 'require' statement fails. 4. (not part of the problem:) put your class(es) and function(s) in seperate files and try to layout your code so that your not intermingling php and html too much - it saves on headaches down the road.
Ross


« previous php.general (#235148) next »