diff --git a/members/plan.php b/members/plan.php index dc516cd..3de52e6 100644 --- a/members/plan.php +++ b/members/plan.php @@ -1,55 +1,54 @@ - // Preamble - $pageName = "Developers - Update Plan"; - $focused = "home"; // Dock icon name to gets a border - $need = 'auth'; - require("../parts/preamble.php"); // Load most of document -?> - - if ($planItem) { - need('sql'); - - $user = ucfirst($userInfo[u_username]) ; - $newsItem = AddSlashes($newsItem); - - $conn = mysql_connect (sqlHost, sqlUser, sqlPass); - if ($conn) { - $query = 'UPDATE devel_plans SET p_date = NOW(), p_plan = ' . - "'$planItem' WHERE p_user = '$user'"; - $result = mysql_db_query (sqlDB, $query, $conn); - if ($result) { - $numRows = mysql_affected_rows ($conn); - if ($numRows) { - echo '
All is well... your plan has been updated'; - } else { - echo '
Hmm... that\'s not right. An error occoured'; - } - } - else - echo '
MySQL error occoured, possibly an invalid query. Contact your webmaster'; - mysql_close ($conn); - } else { - echo 'You suck, butthead.'; - } - } else { - tableBoxHeader(featureBgColor, tableHeadColor); - tableTitle("Edit Plan", 1, tableHeadColor); - - $date = strftime('%d %b %Y', time()); - $user = ucfirst($userInfo[u_username]); - echo '
All is well... your plan has been updated.'; + } else { + echo '
Hmm... that\'s not right. An error occurred.'; + } + } + else + echo '
MySQL error occurred, possibly an invalid query. Bitch at Deek.'; + mysql_close ($conn); + } else { + echo '
<MySQL> You suck, butthead.'; + } + } else { + tableBoxHeader(featureBgColor, tableHeadColor); + tableTitle("Edit Plan", 1, tableHeadColor); + + $date = strftime('%d %b %Y', time()); + $user = ucfirst($userInfo[u_username]); + echo '