I updated the question code I am still having issues no errors but does not update the record. also need to figure how to write in record # updated successfully. I am stuck on t
Your code is a mess.
You should use HEREDOC for big queries like this. Read more about HEREDOCs over here. Furthermore getting the affected row count is done with rowCount () More on that over here
I don't think you understand how prepared statements work either.
I highly advice you read up some of this.
Lastly please read up on what is wrong with $_REQUEST.
Now for the monstrousity you've managed to produce...
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
$id = $_REQUEST['id'];
$lanId = $_REQUEST['lanId'];
$name= $_REQUEST['name'];
$department = $_REQUEST['department'];
$manager= $_REQUEST['manager'];
$request = $_REQUEST['request'];
$request_description = $_REQUEST['request_description'];
$request_comments = $_REQUEST['request_comments'];
$status = $_REQUEST['status'];
$comments = $_REQUEST['comments'];
$compUser = $_REQUEST['compUser'];
$compDt = $_REQUEST['compDt'];
$update =
<<prepare ($update);
$stmt->execute (array ($lanId, $name, $department, $manager, $request, $request_description,
$status, $comments, $compUser, $compDt, $id));
echo $stmt->rowCount () . " rows were affected.";
echo "Record " . $id . " has been updated.";
?>