if ((!$request) || (!$projdesc)) { header("Location:techlog.php"); exit; } $db_name = "techproj"; $table_name = "projlist"; $dtreq = date("Y-n-d"); $connection = mysql_connect("localhost","dbuser","2al2") or die(mysql_error()); $db = mysql_select_db($db_name,$connection) or die(mysql_error()); $sql = " insert into $table_name (request,dtneed,projdesc,dtreq) values (\"$request\",\"$dtneed\",\"$projdesc\",\"$dtreq\") "; $result= @mysql_query($sql,$connection) or die(mysql_error()); ?>
Requestor: |
|
Date Needed: |
|
Project Description: |