valid db
| From: | Kurth Bemis | Date: | Wed, 13 Sep 2000 19:27:45 +0000 |
| Subject: | valid db | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16626@lists.php.net to get a copy of this message | ||
arg!
i have some code that i use to validate weather or not a page was allowed.....
now i want to do the same thing with my db
look
============================
<?php
$table = getenv("QUERY_STRING");
// get rid of the initial forward slash from the path_info
$allowedsections = array(
"horsdoevres",
"search",
"aboutusa",
"specials",
"contact",
"noc",
"overheard",
"signup",
);
// loop through the list of allowed pages, checking to see if
// the requested page is one of the allowed pages
foreach ($allowedsections as $table) {
if ($table == $section) {
$page_to_include = $this_page;
break; // stop looping since $this_page is allowed
}
}
==============================
it dosen't return any data.....it just gives me a mySQL error....bruce c. - maybe you can help me out with this...you gave me the the original code......
thanks
~kurth
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer
kurth@usaexpress.net
http://www.usaexpress.net/kurth
ICQ - 6624050
Call Sign - N1TYW
PGP key available - http://www.usaexpress.net/kurth/pgp
Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net (http://www.distributed.net)