if((!$projid) || (!$projdesc2 && !$dtneed)) { header("Location:oops.php"); exit; } $db_name = "techproj"; $table_name = "projlist"; $connection = mysql_connect("localhost","dbuser","2al2") or die(mysql_error()); $db = mysql_select_db($db_name,$connection) or die(mysql_error()); if($projdesc2) { $sql=" update $table_name set projdesc=concat(projdesc,\"$projdesc2\") where projid=\"$projid\" "; $result = mysql_query($sql,$connection) or die(mysql_error()); } if($dtneed) { $sql2=" update $table_name set dtneed=\"$dtneed\" where projid=\"$projid\" "; $result2 = mysql_query($sql2,$connection) or die(mysql_error()); } ?>
Project ID: |
Date Needed(YYYY-MM-DD): |
Additional info: |