mirror of
https://git.code.sf.net/p/quake/website
synced 2025-02-17 17:31:39 +00:00
fix a query error
This commit is contained in:
parent
2771109447
commit
e55c23b511
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
$conn = mysql_connect (sqlHost, sqlUser, sqlPass);
|
||||
if ($conn) {
|
||||
$query = 'UPDATE devel_plans SET p_date = NOW() AND p_plan = ' .
|
||||
"'$planItem' WHERE p_user = '$user')";
|
||||
"'$planItem' WHERE p_user = '$user'";
|
||||
$result = mysql_db_query (sqlDB, $query, $conn);
|
||||
if ($result) {
|
||||
$numRows = mysql_affected_rows ($conn);
|
||||
|
@ -24,6 +24,7 @@
|
|||
echo '<P>Hmm... that\'s not right. An error occoured';
|
||||
}
|
||||
}
|
||||
echo '<P>MySQL error occoured, possibly an invalid query. Contact your webmaster';
|
||||
mysql_close ($conn);
|
||||
} else {
|
||||
echo 'You suck, butthead.';
|
||||
|
|
Loading…
Reference in a new issue