Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > สอบถามเรื่องการแก้ไขที่เป็น listmenu ในกรณีมีการแก้ไขหลายๆครั้งครับ



 

สอบถามเรื่องการแก้ไขที่เป็น listmenu ในกรณีมีการแก้ไขหลายๆครั้งครับ

 



Topic : 120443



โพสกระทู้ ( 0 )
บทความ ( 0 )



สถานะออฟไลน์




เป็นมือใหม่ครับ รบกวนขอความช่วยเหลือด้วยครับ

ต้องการทำหน้า Edit โดยที่สามารถเช็คได้ว่ามีการแก้ไขไปแล้วกี่ครั้งและแสดงการแก้ไขครั้งที่ผ่านๆมาได้

listmenu ของการแก้ปัญหาและผลการแก้ไขจะมีการส่งค่าให้เลือกได้เฉพาะที่กำหนด

การแสดงการแก้ไขครั้งที่ผ่านมาแสดงเป็น textbox

การเก็บแยกฟิล์ดกันในแต่ละครั้งแต่อยู่ในตารางเดียวกันครับ

ที่ทำได้ตอนนี้คือตีความว่าเมื่อกดแก้ไขถือเป็นการแก้ปัญหาครั้งที่ 2 ครับ


Edit

Search

ฟิล์ดที่เก็บ


ส่วนของ code หน้า search

Code
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ATM</title>
</head>

<body>
<form id="form" name="form" method="post" action="newman.php">
  <p>Terminal ID 
    <label for="textfield"></label>
  <input type="text" name="tnumber" id="tnumber" onkeypress="on_enter();" onkeydown="getData(this.value);" /> 
  รหัสสาขา 
  <label for="select"></label>
  <select name="select" id="select">
  </select>
 ชื่อสาขา 
 <label for="textfield2"></label>
 <input type="text" name="textfield2" id="textfield2" />
  <input type="submit" name="button" id="button" value="ค้นหา" />
  </p>
  <p>
  <!--
    <input type="radio" name="radio" id="radio" value="radio" />
     <label for="radio"></label>
  แก้ใขปัญหาเรียบร้อยแล้ว  
  <input type="radio" name="radio2" id="radio2" value="radio2" />
  <label for="radio2"></label>
   อยู่ระหว่างดำเนินการ  
   <input type="radio" name="radio3" id="radio3" value="radio3" />
   <label for="radio3"></label>
  รอการดำเนินการ</p>-->

  <label for="select"></label>
  <select name="tstatus" id="tstatus">
  <option value="0">- เลือกสถานะ -</option>
    <option value="รอการดำเนินการ">รอการดำเนินการ</option>
    <option value="แก้ใขปัญหาเรียบร้อยแล้ว">แก้ใขปัญหาเรียบร้อยแล้ว</option>
    <option value="อยู่ระหว่างดำเนินการ">อยู่ระหว่างดำเนินการ</option>
  </select>
  </p>
</form>

 <?
 include "config.php";
 conndb();

 if(!empty($_POST)){  // chek data post

$tnumber=$_POST['tnumber'];
$Status_Error=$_POST['tstatus'];


$tblname = "record_problem";

//$sql  = "select * from $tblname where Terminal_ID like '%$tnumber%'" ;

$sql  = "select * from $tblname where (Terminal_ID like '%$tnumber%' and Status_Error like '%$tstatus%')" ;


 $dbquery=mysql_query($sql);
 $numrow = mysql_num_rows($dbquery);


 ?>


<table width="1200" height="60" border="1">
  <tr>
    <td width="200"><div align="center">Terminal ID</div></td>
   <!-- <td width="112">Branch Name</td>-->
    <td width="300"><div align="center">Issue</div></td>
    <td width="800"><div align="center">Detail Issue</div></td>
    <td width="200"><div align="center">ผู้แจ้งปัญหา</div></td>
	<td width="400"><div align="center">สถานะ</div></td>
	<td width="300"> <div align="center">Detail </div></td>
  </tr>

 

  <tr>
    <?
  while ($data=mysql_fetch_array($dbquery)) {  ?>
    <td><div align="center"><?php echo $data['Terminal_ID']; ?> </div></td>
  <!--   <td><div align="center"><?php echo $data['tnumber']; ?> </div></td>-->
    <td><div align="center"><?php echo $data['Issue_Name']; ?> </div></td>
    <td><div align="center"><?php echo $data['Detail_Issue_Name']; ?> </div></td>
    <td><div align="center"><?php echo $data['Emp_Inform_ID']; ?> </div></td>
	<td><div align="center"><?php echo $data['Status_Error']; ?> </div></td>
    <td> <div align="center"><a href="detail.php?detail_case=<?=$data[Case_Error_No]?>">ดูรายละเอียด</a> / 
	<a href="edit2.php?edit_case=<?=$data[Case_Error_No]?>">แก้ไข</a></td>
  </tr>
 <?php		
  }?>
</table>
<?php
echo "<br>";
echo "";
echo "<center>ค้นพบ <font color=red>". $numrow." </font>รายการ </center>";
closedb();
 }
?>
     <form id="form1" name="form1" method="post" action="newform.php">
  <input type="submit" name="submit" id="submit" value="สร้าง Job" />
</form>
</body>
</html>


ส่วนของ code หน้า edit

Code
<html>
<head>
  <title>แก้ไขข้อมูล ATM</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script language=Javascript>
        function Inint_AJAX() {
           try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
           try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
           try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
           alert("XMLHttpRequest not supported");
           return null;
        };
		  </script>
		   <script language=Javascript>
        function dochange(src, val) {
             var req = Inint_AJAX();
             req.onreadystatechange = function () { 
                  if (req.readyState==4) {
                       if (req.status==200) {
                            document.getElementById(src).innerHTML=req.responseText; //รับค่ากลับมา
                       } 
                  }
             };
             req.open("GET", "localtion2.php?data="+src+"&val="+val); //สร้าง connection
             req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); // set Header
             req.send(null); //ส่งค่า
        }

        //window.onLoad=dochange('cause', -1);
		window.onLoad=dochange('typecorrect2', -1);
		  </script>
		 <!--<script language=Javascript>
		function FormChange()

		{
				document.forms.form.action = "newform.php";
				document.forms.form.submit();
		}
    </script>-->
<?
include "config.php";
    conndb();
//mysql_query("set character set tis620");
//mysql_query("set character_set_results=utf8");
//mysql_query("set character_set_results=tis620");
//mysql_query("set character_set_client=tis620");
//mysql_query("set character_set_connection=tis620");
//mysql_set_charset('utf8');

if($_POST['Edit'])
{ 
$ddate = $_POST['ddate'];
$dtime = $_POST['dtime'];
$cause_ID = $_POST['cause'];
$subproblem_ID = $_POST['subproblem'];
$typecorrect_ID = $_POST['typecorrect'];
$typecorrect_ID2 = $_POST['typecorrect2'];
$uproblem_ID = $_POST['uproblem'];
$uproblem_ID2 = $_POST['uproblem2'];
$OperID = $_POST['Oper'];
$StatusID = $_POST['Status'];
$TypeID = $_POST['typeoper'];
//$tblname = "record_problem";

$sqlcause="SELECT * FROM case_issue WHERE Issue_Name='$cause_ID'";
$resultecause=mysql_query($sqlcause);
$datacause=mysql_fetch_array($resultecause);
$namecause=$datacause['Issue_ID'];

$sqlsub="SELECT * FROM detail_issue WHERE Detail_Issue_Name='$subproblem_ID'";
$resultesub=mysql_query($sqlsub);
$datasub=mysql_fetch_array($resultesub);
$namesub=$datasub['Detail_Issue_ID'];

$sqltype="SELECT * FROM case_repair WHERE Repair_Name='$typecorrect_ID'";
$resultetype=mysql_query($sqltype);
$datatype=mysql_fetch_array($resultetype);
$nametype=$datatype['Repair_ID'];

$sqltype2="SELECT * FROM case_repair WHERE Repair_ID='$typecorrect_ID2'";
$resultetype2=mysql_query($sqltype2);
$datatype2=mysql_fetch_array($resultetype2);
$nametype2=$datatype2['Repair_Name'];

$sqlup="SELECT * FROM detail_repair WHERE Detail_Repair_Name='$uproblem_ID'";
$resulteup=mysql_query($sqlup);
$dataup=mysql_fetch_array($resulteup);
$nameup=$dataup['Detail_Repair_ID'];

$sqlup2="SELECT * FROM detail_repair WHERE Detail_Repair_ID='$uproblem_ID2'";
$resulteup2=mysql_query($sqlup2);
$dataup2=mysql_fetch_array($resulteup2);
$nameup2=$dataup2['Detail_Repair_Name'];

$sqloper="SELECT * FROM emp_oper WHERE Oper_Name='$OperID'";
$resulteoper=mysql_query($sqloper);
$dataoper=mysql_fetch_array($resulteoper);
$nameoper=$dataoper['Oper_ID'];

$sqlstatus="SELECT * FROM status_error WHERE Status_ID='$StatusID'";
$resultestatus=mysql_query($sqlstatus);
$datastatus=mysql_fetch_array($resultestatus);
$namestatus=$datastatus['Status_Name'];

$sqltypeoper="SELECT * FROM type_oper WHERE Type_ID='$TypeID'";
$resultetypeoper=mysql_query($sqltypeoper);
$datatypeoper=mysql_fetch_array($resultetypeoper);
$nametypeoper=$datatypeoper['Type_Oper_name'];

$sqltyperepair="SELECT * FROM type_oper WHERE Type_ID='$TyperepairID'";
$resultetyperepair=mysql_query($sqltyperepair);
$datatyperepair=mysql_fetch_array($resultetyperepair);
$nametyperepair=$datatyperepair['Type_Oper_name'];

$CaseID = $_REQUEST['edit_case'];
// แก้ไขข้อมูล
$sql_edit = "update record_problem set  Terminal_ID = '$tnumber', Date_Inform =  '$ddate', Time_Inform =  '$dtime', Issue_ID =  '$namecause' , Issue_Name= '$cause_ID', Detail_Issue_ID =  '$namesub', Detail_Issue_Name =  '$subproblem_ID', Repair_ID = '$nametype', Repair_Name = '$typecorrect_ID', Detail_Repair_ID = '$nameup', Detail_Repair_Name = '$uproblem_ID', Emp_Inform_ID = '$Emp', Oper_ID = '$nameoper', Oper_Name = '$OperID', Status_Error = '$namestatus', Type_Inform_ID = '$nametypeoper', Emp_Repair_ID = '$Emprepair', Type_Repair_ID = '$nametyperepair', Note = '$noteproblem', Repair_ID_2 = '$typecorrect_ID2', Repair_Name_2 = '$nametype2', Detail_Repair_ID_2 = '$uproblem_ID2', Detail_Repair_Name_2 = '$nameup2' where Case_Error_No = '$CaseID' "; 

//echo $sql_edit;        
//exit;

mysql_query($sql_edit) or die(mysql_error());

echo "<font  color=#339900>แก้ไขข้อมูลสำเร็จแล้ว</font>";
//-->
}

//เรียกข้อมูลจาก รหัส มาแสดงใน textbox
if($_REQUEST['edit_case'] != "")
{
$CaseID = $_REQUEST['edit_case'];
$sql_show = "select * from record_problem where Case_Error_No = '$CaseID' "; 
$result_show = mysql_query($sql_show) or die(mysql_error());
$row_show = mysql_fetch_array($result_show);
}
?>
    <body>    
   <center><font size=6>แก้ไขข้อมูล ATM</font></center>
<form action="edit2.php" method="post" name="form" id="form">
	<p>
	ปัญหาลำดับที่ :
     <input type="text" name="id" id="id" readonly value="<?=$row_show["Case_Error_No"]?>" />
	</p>
	<p>
    <label for="textfield2"></label>
    <label for="textfield"></label>
     วันที่ Down : 
    <label for="textfield"></label>
    <input type="text" name="ddate" id="ddate" value="<?=$row_show["Date_Inform"]?>" />
    เวลา Down : 
    <label for="textfield3"></label>
    <input type="text" name="dtime" id="dtime" value="<?=$row_show["Time_Inform"]?>" />
  (HH:MM)</p>
<p>Terminal ID : 
    <label for="textfield4"></label>
    <input type="text" name="tnumber" id="tnumber" readonly value ="<?=$row_show['Terminal_ID'];?>" />
<!--
    สาขา : 
    <label for="textfield5"></label>
    <input type="text" name="branch" id="branch" disabled=true value ="<?=$row_show['Branch_name'];?>" />
    ที่ตั้ง : 
    <label for="textfield6"></label>
    <input type="text" name="location" id="location" disabled=true value ="<?=$row_show['Place_Install'];?>" />
  </p>
<p>IP - Address : 
    <label for="textfield7"></label>
    <input type="text" name="ipaddress" id="ipaddress" disabled=true value ="<?=$row_show['IP'];?>" /> 
    ประเภทสัญญาณ  
    <label for="textfield8"></label>
    <input type="text" name="links" id="links" disabled=true value ="<?=$row_show['Type_Link'];?>" />
    Version_ATM : 
       <label for="textfield9"></label>
    <input type="text" name="model" id="model" disabled=true value ="<?=$row_show['Version_ATM'];?>" />
	 การเปลี่ยนกล่องเงิน : 
       <label for="textfield10"></label>
    <input type="text" name="ma" id="ma" disabled=true value ="<?=$row_show['MA_ATM'];?>" />
  </p>-->
  <p> ประเภทปัญหา : 
  <span id="cause">
  <input type="text" name="cause" id="cause" readonly value ="<?=$row_show['Issue_Name'];?>" />
   </span>
 รายละเอียดปัญหา : 
<span id="subproblem">
	<input type="text" name="subproblem" id="subproblem" readonly style="width:500px;" value ="<?=$row_show['Detail_Issue_Name'];?>" />
</span>
  </p>
  <p>ผู้แจ้งปัญหา : 
    <label for="textfield12"></label>
    <input name="Emp" type="text" id="Emp" value ="<?=$row_show['Emp_Inform_ID'];?>" /> 
    หน่วยงาน 
     <label for="select4"></label>
      <input name="typeoper" type="text" id="typeoper" readonly value ="<?=$row_show['Type_Inform_ID'];?>" /> 
ผู้รับปัญหา 
<label for="select5"></label>
	 <input type="text" name="Oper" id="Oper" readonly  value ="<?=$row_show['Oper_Name'];?>" />
  </p>
<p>วิธีการแก้ปัญหา 1
  <span id="typecorrect">
    <label for="select6"></label>
		<input type="text" name="typecorrect" id="typecorrect" readonly  style="width:300px;" value ="<?=$row_show['Repair_Name'];?>" />
	</span>
รายละเอียดการแก้ปัญหา  1 
	<span id="uproblem">
<label for="select7"></label>
		<input type="text" name="uproblem" id="uproblem" readonly  style="width:500px;" value ="<?=$row_show['Detail_Repair_Name'];?>" />
	 </span>
  </p>

    <p>วิธีการแก้ปัญหา 2 
	<span id="typecorrect2">
					<select>
                        <option value="0">- เลือกการแก้ไขปัญหา  -</option>
                    </select>
					</span>
  รายละเอียดการแก้ปัญหา  2 
   <span id="uproblem2">
					<select>
                        <option value="0">- เลือกผลการแก้ไข :  -</option>
                    </select>
					</span>
  </p>
  </p>
  <p>วิธีการแก้ปัญหา 3 
    <label for="select12"></label>
    <select name="select12" id="select12">
    </select>
  รายละเอียดการแก้ปัญหา  3 
  <label for="select13"></label>
  <select name="select13" id="select13">
  </select>
  </p>
  <p>วิธีการแก้ปัญหา 4 
    <label for="select15"></label>
    <select name="select15" id="select15">
    </select>
  รายละเอียดการแก้ปัญหา  4 
  <label for="select16"></label>
  <select name="select16" id="select16">
  </select>
  </p>
  <p>ผู้แก้ปัญหา 
    <label for="textfield13"></label>
    <input name="Emprepair" type="text" id="Emprepair" value ="<?=$row_show['Emp_Repair_ID'];?>" /> 
  หน่วยงาน 
  <label for="textfield14"></label>
 <input name="typerepair" type="text" id="typerepair" readonly value ="<?=$row_show['Type_Repair_ID'];?>" /> 
  </p>
  <p>Incident No 
    <label for="textfield15"></label>
    <input type="text" name="textfield11" id="textfield14" />
    วันที่เปิด 
  Incident 
  <label for="textfield16"></label>
  <input type="text" name="textfield12" id="textfield15" />
   เวลา 
   <label for="textfield17"></label>
   <input type="text" name="textfield13" id="textfield16" />
   (HH:MM)</p>
  <p>วันที่ปิด 
    Incident     			
    <label for="textfield18"></label>
    <input type="text" name="textfield14" id="textfield17" />
    เวลา 
    <label for="textfield19"></label>
    <input type="text" name="textfield15" id="textfield18" />
  (HH:MM)</p>
  <p>Incident Note
  <label for="fileField"></label>
    <label for="textfield20"></label>
    <label for="textarea"></label>
    <textarea name="textarea" id="textarea" cols="80" rows="4"></textarea>
  </p>
  <p>Note Problem 
    <label for="textfield21"></label>
    <label for="textarea2"></label>
    <textarea name="noteproblem" id="noteproblem" cols="80" rows="4"><?echo $row_show["Note"];?></textarea>
  </p>
  <p> เลือกสถานะการแก้ไขปัญหา 
    <!--<input type="checkbox" name="checkbox1" id="checkbox1" value="<? if($checkbox1=='แก้ใขปัญหาเรียบร้อยแล้ว')echo "checked='checked'";?>" />
	<input name="checkbox[]" type="checkbox" id="checkbox[]" value="0" />  
    <input name="hidden[]" type="hidden" id="hidden[]" value="แก้ใขปัญหาเรียบร้อยแล้ว" />  
  แก้ใขปัญหาเรียบร้อยแล้ว
   <input type="checkbox" name="checkbox2" id="checkbox2" value="<? if($checkbox2=='อยู่ระหว่างดำเนินการ')echo "checked='checked'";?>" />
  <input name="checkbox[]" type="checkbox" id="checkbox[]" value="1" />  
   <input name="hidden[]" type="hidden" id="hidden[]" value="อยู่ระหว่างดำเนินการ" />  
  อยู่ระหว่างดำเนินการ-->
  <!--<select name='Status'>
                        <option value="0">- เลือกสถานะการแก้ไขปัญหา -</option>
							 <? 
								 $result=mysql_query("select * from Status_Error order by Status_Name");
								 while($row = mysql_fetch_array($result))
								{
								   echo "<option value='$row[Status_ID]' >$row[Status_Name]</option>" ;
								}
							  ?> 
                    </select>-->
					<input type="text" name="Status1" id="Status1" readonly value ="<?=$row_show['Status_Error'];?>" />
					สถานะการแก้ไขปัญหาใหม่
					<select name='Status'>
                        <option value="0">- เลือกสถานะการแก้ไขปัญหา -</option>
							 <? 
								 $result=mysql_query("select * from status_error order by Status_Name");
								 while($row = mysql_fetch_array($result))
								{
								   echo "<option value='$row[Status_ID]' >$row[Status_Name]</option>" ;
								}
							  ?> 
                    </select>
  </p>
  <p>
    <input type="submit" name="Edit" id="Edit" value="SAVE" />
	<input name="edit_case" type="hidden" id="edit_case" value="<?=$_REQUEST['edit_case']?>" />
  </p>
  <p><a href="newman.php">กลับหน้าเดิม</a>
  </form>
<p>&nbsp;</p>
</body>
</html>
 


ส่วนของ code หน้าที่ส่งค่าใน list menu

Code
<?php
    header("content-type: text/html; charset=utf-8");
    header ("Expires: Wed, 21 Aug 2013 13:13:13 GMT");
    header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header ("Cache-Control: no-cache, must-revalidate");
    header ("Pragma: no-cache");

    include "config.php";
    conndb();

    $data = $_GET['data'];
    $val = $_GET['val'];


         if ($data=='typecorrect2') { 
              echo "<select name='typecorrect2' onChange=\"dochange('uproblem2', this.value)\">";
              echo "<option value='0'>- เลือกการแก้ไขปัญหา -</option>\n";
              $result=mysql_query("select * from case_repair order by Repair_Name");
              while($row = mysql_fetch_array($result)){
                   echo "<option value='$row[Repair_ID]' >$row[Repair_Name]</option>" ;
              }
         } else if ($data=='uproblem2') {
             echo "<select name='uproblem2'>\n";
              echo "<option value='0'>- เลือกผลการแก้ไข -</option>\n";                             
              $result=mysql_query("SELECT * FROM detail_repair WHERE Repair_ID= '$val' ORDER BY Detail_Repair_Name");
              while($row = mysql_fetch_array($result)){
                   echo "<option value=\"$row[Detail_Repair_ID]\" >$row[Detail_Repair_Name]</option> " ;
              }
         } 
         echo "</select>\n";
        

        echo mysql_error();
        closedb();
?>




Tag : PHP, Ajax, jQuery







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2015-12-12 11:25:36 By : bambados View : 914 Reply : 3
 

 

No. 1

Guest


ไม่ค่อยเข้าใจคำถามเท่าไร (สมองผมช้า - -)

แต่น่าจะหมายถึง...

ตารางแรกเก็บข้อมูลปัญหา
tb_problem
- Problem_ID
- Terminal ID
- Issue
- Detail Issue
- announcer
- status

ตารางสองเก็บรายละเอียดการแก้ปัญหา
tb_problem_detail
- id
- Problem_ID
- How
- Detail

พอกดแก้ไขก็ส่งค่า Problem_ID ไปดึงข้อมูลจาก tb_problem_detail

เอาข้อมูลที่ได้มา count ก็จะได้ว่าแก้ไขไปกี่ครั้งแล้ว

เอาข้อมูลที่ได้มาลูปแสดงใน textbox

ลูปเสร็จก็ค่อยแสดง listbox รับการแก้ปัญหาใหม่

เอาข้อมูลการแก้ปัญหาใหม่มา INSERT ลง tb_problem_detail


//ถ้าเข้าใจคำถามไม่ผิดก็น่าจะประมาณนี้ครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2015-12-12 15:57:24 By : noMerzy
 


 

No. 2



โพสกระทู้ ( 0 )
บทความ ( 0 )



สถานะออฟไลน์


ตอบความคิดเห็นที่ : 1 เขียนโดย : noMerzy เมื่อวันที่ 2015-12-12 15:57:24
รายละเอียดของการตอบ ::
เก็บอยู่ในตารางเดียวครับ เป็นตาราง record_problem เป็นตารางที่เก็บปัญหา รวมถึงเก็บ listmenu ของการแก้ปัญหาที่มีการ add ลงไปแล้ว

ส่วน listmenu ของการแก้ปัญหาที่ส่งค่ากันจะมีตารางแยกเก็บคือตาราง case_repair กับ detail_repair ครับ

Table record_problem

record_problem

record_problem2


Table case_repair

วิธีการแก้ปัญหา

Table detail_repair

รายละเอียดการแก้ปัญหา

ส่วนวิธีการที่บอก พอจะมี code ตัวอย่างไหมครับ นึกภาพไม่ออกอะครับ


แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2015-12-12 16:56:02 By : bambados
 

 

No. 3

Guest


ตอนนี้คือ

<a href="edit2.php?edit_case=<?=$data[Case_Error_No]?>">แก้ไข</a></td>

ท่านได้ส่ง primary ไปค้นหา เวลาท่านค้นหาก็จะแค่เรคคอร์ดเดียว

ท่านต้องมีคอลัมน์ problem_id (ไม่ทราบว่าท่านใช้ชื่อเป็น Terminal_ID หรือเปล่า)

คือท่านต้องส่งค่านี้ไป

<a href="edit2.php?edit_case=<?=$data['problem_id']?>">แก้ไข</a></td>



// problem_id ท่านอาจจะสร้างเอาเหมือนเอกสารราชการ

รหัสATM / ปัญหาที่ / ปี

ABCD/001/58

ถ้าปัญหาเดิมแก้ไขครั้งที่ 2 ก็ให้ค่าเท่าเดิม

ถ้าแก้ไขไปแล้ว เกิดปัญหาใหม่ก็เพิ่มเรคคอร์ดใหม่เป็น

ABCD/002/58


// ตารางท่านยาวมาก - - ดูเรื่องข้อมูลซ้ำซ้อนหน่อยก็ดีนะครับ

//ผมเข้าใจถูกไหมนี่ พิมพ์ซะยาวเลย
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2015-12-12 18:18:50 By : noMerzy
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : สอบถามเรื่องการแก้ไขที่เป็น listmenu ในกรณีมีการแก้ไขหลายๆครั้งครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่