Re: Need Help Troubleshooting Code That Works Till It Comes to Form at End
| From: | John W. Holmes | Date: | Sun, 14 Sep 2003 14:17:27 +0000 |
| Subject: | Re: Need Help Troubleshooting Code That Works Till It Comes to Form at End | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162554@lists.php.net to get a copy of this message | ||
Stephen Tiano wrote:
So I got is to display every column of every entry. But when I tried a specialized select statement in the query box provided by the form at the very end of this code, when I pressed the "Submit" button, nothing changed; I was still left staring at the table of all the info in "users". [snip]
if(!isset($query) || empty($query)) {$query = "select * from users";} [snip]
<form action="<? echo $PHP_SELF?>" method="GET"> <input type="text" name="query" size="50"><br> <input type="submit"> </form>Is register_globals ON or OFF? From you're code, you're assuming it's ON and $query will be created. If it's off, however, there will be no $query, only $_GET['query'] or $_REQUEST['query']. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com