mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-27 22:42:57 +00:00
Fix plans...stupid bug, I have _no_ idea how this ever worked.
This commit is contained in:
parent
19e3351805
commit
30a9154f83
1 changed files with 54 additions and 55 deletions
|
@ -9,26 +9,27 @@
|
||||||
need('sql');
|
need('sql');
|
||||||
|
|
||||||
$user = ucfirst($userInfo[u_username]) ;
|
$user = ucfirst($userInfo[u_username]) ;
|
||||||
$newsItem = AddSlashes($newsItem);
|
$planItem = AddSlashes($planItem);
|
||||||
|
|
||||||
$conn = mysql_connect (sqlHost, sqlUser, sqlPass);
|
$conn = mysql_connect (sqlHost, sqlUser, sqlPass);
|
||||||
if ($conn) {
|
if ($conn) {
|
||||||
$query = 'UPDATE devel_plans SET p_date = NOW(), p_plan = ' .
|
$query = 'UPDATE devel_plans' .
|
||||||
"'$planItem' WHERE p_user = '$user'";
|
" SET p_date = NOW(), p_plan = '$planItem'" .
|
||||||
|
" WHERE p_user = '$user'";
|
||||||
$result = mysql_db_query (sqlDB, $query, $conn);
|
$result = mysql_db_query (sqlDB, $query, $conn);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$numRows = mysql_affected_rows ($conn);
|
$numRows = mysql_affected_rows ($conn);
|
||||||
if ($numRows) {
|
if ($numRows) {
|
||||||
echo '<P>All is well... your plan has been updated';
|
echo '<P>All is well... your plan has been updated.';
|
||||||
} else {
|
} else {
|
||||||
echo '<P>Hmm... that\'s not right. An error occoured';
|
echo '<P>Hmm... that\'s not right. An error occurred.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo '<P>MySQL error occoured, possibly an invalid query. Contact your webmaster';
|
echo '<P>MySQL error occurred, possibly an invalid query. Bitch at Deek.';
|
||||||
mysql_close ($conn);
|
mysql_close ($conn);
|
||||||
} else {
|
} else {
|
||||||
echo 'You suck, butthead.';
|
echo '<P><MySQL> You suck, butthead.';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tableBoxHeader(featureBgColor, tableHeadColor);
|
tableBoxHeader(featureBgColor, tableHeadColor);
|
||||||
|
@ -36,7 +37,7 @@
|
||||||
|
|
||||||
$date = strftime('%d %b %Y', time());
|
$date = strftime('%d %b %Y', time());
|
||||||
$user = ucfirst($userInfo[u_username]);
|
$user = ucfirst($userInfo[u_username]);
|
||||||
echo '<TR><TD><DL><DT><FONT SIZE=-1>Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
|
echo '<TR><TD><DL><DT><FONT size="-1">Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
|
||||||
' <DD> ';
|
' <DD> ';
|
||||||
?>
|
?>
|
||||||
<FORM action="plan.php" method="post">
|
<FORM action="plan.php" method="post">
|
||||||
|
@ -49,7 +50,5 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
?>
|
require siteHome . "/parts/postamble.php"; // Finish this sucker up
|
||||||
<?
|
|
||||||
require (siteHome ."/parts/postamble.php"); // Finish this sucker up
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue