include "login.php"; include "conn.inc"; if ($_SESSION["userId"]){ if ($_SESSION["userLevel"] == 0) { // delete function if ($_GET["del"]) { $delID = $_GET["del"]; // delete from function table $sql="delete from wd_function where f_id = $delID"; $delRes=mysql_query($sql) or die ("Delete Function Error: ".mysql_error()); // delete from functionlink table $sql2 = "delete from wd_functionlink where fl_fid = $delID"; $delRes2=mysql_query($sql2) or die ("Delete FunctionLink Error: ".mysql_error()); } // query function if ($_GET["query"]) { $updID = $_GET["query"]; $sql="select * from wd_function where f_id = $updID LIMIT 1"; $updRes=mysql_query($sql) or die ("Query Error: ".mysql_error()); $urow = mysql_fetch_array($updRes); $upFunction = $urow["f_function"]; } // update function details if ($_GET["update"]){ // extract Vars $functionID = $_GET["update"]; $functionName = $_POST["functionName"]; // update current entry into wd_function table $updateSQL = "update wd_function set f_function='$functionName' where f_id = $functionID limit 1"; $updateResult = mysql_query($updateSQL) or die ("Error in updating function: ". mysql_error()); } // add member if ($_GET["add"]){ // extract Vars $functionName = $_POST["functionName"]; // add current entry into wd_function table $addID = "insert into wd_function ( f_function) values ('$functionName')"; $IDresult = mysql_query($addID) or die ("Error in adding function: ". mysql_error()); /* */ } ?>
![]() |
![]() |
![]() |
![]() |
|
![]() |
![]() |
|
|
|
|||||||||||||||||||||||||||||||
![]() |
![]() | ||
| ||
![]() |
© 2025 War Dogs Motorcycle Club. All rights reserved.![]() // IF LOGGED IN DISPLAY MESSAGE AND LOGOUT LINK //include "wdsess.php"; if ($_SESSION["userId"]){ ?> LOGGED IN AS USER: • LOGOUT } ?> |
![]() |