prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); $item_num=$row["num"]; $con_num=$row["con_num"]; $item_outdate=$row["outdate"]; $item_indate=$row["indate"]; $item_orderman=$row["orderman"]; $item_outworkplace=$row["outworkplace"]; $item_outputplace=$row["outputplace"]; $item_receiver=$row["receiver"]; $item_phone=$row["phone"]; $item_comment=$row["comment"]; $root=$row["root"]; $steel=$row["steel"]; $motor=$row["motor"]; $delivery=$row["delivery"]; $regist_state=$row["regist_state"]; $image_name[0] = $row["file_name_0"]; $image_name[1] = $row["file_name_1"]; $image_name[2] = $row["file_name_2"]; $image_name[3] = $row["file_name_3"]; $image_name[4] = $row["file_name_4"]; $image_copied[0] = $row["file_copied_0"]; $image_copied[1] = $row["file_copied_1"]; $image_copied[2] = $row["file_copied_2"]; $image_copied[3] = $row["file_copied_3"]; $image_copied[4] = $row["file_copied_4"]; $img_name0 = $image_name[0]; $img_copied0 = "../uploads/output/".$image_copied[0]; $img_name1 = $image_name[1]; $img_copied1 = "../uploads/output/".$image_copied[1]; $img_name2 = $image_name[2]; $img_copied2 = "../uploads/output/".$image_copied[2]; $img_name3 = $image_name[3]; $img_copied3 = "../uploads/output/".$image_copied[3]; $img_name4 = $image_name[4]; $img_copied4 = "../uploads/output/".$image_copied[4]; } catch (PDOException $Exception) { $pdo->rollBack(); print "오류: ".$Exception->getMessage(); } if($item_outdate!="") { $week = array("(일)" , "(월)" , "(화)" , "(수)" , "(목)" , "(금)" ,"(토)") ; $item_outdate = $item_outdate . $week[ date('w', strtotime($item_outdate) ) ] ; } ?>