PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| <? $HTTP_COOKIE_VARS["lidnaam, passgecodeerd"]; include('config/config.php'); mysql_connect("$hostname","$username","$password"); mysql_select_db("$database"); $select = "SELECT * FROM leden WHERE lidnaam='$lidnaam'"; $query = mysql_query($select); while ($list = mysql_fetch_object($query)) { if ( ($list->status == 'Administrator') || ($list->status == 'Moderator') ) { echo ""; } else { exit; } } ?> |
Ik ben al een half uur bezig aan dit stomme stukje, maar ik zie niet waarom hij niet werkt.
Als ik niet ben ingelogd heb ik geen cookie, en nog laat hij me toe tot de pagina. Oftwel hij moet me nog herkennen als Administrator of Moderator?
Zie ik nu iets cruciaals over het hoofd of?
[ Voor 12% gewijzigd door Elect op 11-10-2003 15:54 ]