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]
[snip]if(!isset($query) || empty($query)) {$query = "select * from users";}
<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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php