fix query errors and other bloopers

This commit is contained in:
Dan Olson 2000-06-16 03:25:09 +00:00
parent dd98fab354
commit 2771109447

View file

@ -13,8 +13,8 @@
$conn = mysql_connect (sqlHost, sqlUser, sqlPass);
if ($conn) {
$query = 'UPDATE devel_plans (p_date, p_plan) VALUES (' .
" NOW(), '$planItem')";
$query = 'UPDATE devel_plans SET p_date = NOW() AND p_plan = ' .
"'$planItem' WHERE p_user = '$user')";
$result = mysql_db_query (sqlDB, $query, $conn);
if ($result) {
$numRows = mysql_affected_rows ($conn);
@ -38,7 +38,7 @@
' <DD> ';
?>
<FORM action="plan.php" method="post">
<TEXTAREA name="newsItem" rows="25" cols="64"></TEXTAREA><BR>
<TEXTAREA name="planItem" rows="25" cols="64"></TEXTAREA><BR>
<INPUT align="center" type="submit" value="Post"></INPUT>
</FORM>
<? ' . </DD>' .