ขอตัวอย่างการแก้ไขรูป โดยเมื่อเราทำการอัพเดทรูปใหม่ลงไปให้ลบรูปเก่าออกแล้วให้รูปใหม่แสดงแทนที่รูปเก่าอ่ะค่ะ
ก็อัพโหลดธรรมดานั่นล่ะจ๊ะ แต่ให้ชื่อไฟล์เหมือนเดิม
Date :
2010-08-28 21:45:45
By :
zankumuro
เวลาจะแก้ไขรูปใหม่ต้องทำ resize รูป ที่จะอัพแทนรูปเก่าด้วยไหมอ่ะคะ
Date :
2010-08-28 22:33:50
By :
nongjar
แล้วแต่การออกแบบนี่ครับว่าจะ resize หรือไม่ แต่ปกติต้อง resize ด้วย gd เพื่อความคมชัดไม่แตก เพราะถ้ากำหนดเอาใน tag img นี่จะแตกได้
การใช้ชื่อเดิมเหมือนชื่อรูปเก่า บางทีอาจมีปัญหาเรื่อง cache ทำให้บางคนบอกว่า ทำไมอัปเดทรูปแล้วยังไม่เปลี่ยนอีก นั่นเพราะมันชื่อเดิมไง ถ้าไม่อยากให้มีปัญหานี้ ต้อง rename ในชื่ออื่น แล้วไป select ข้อมูลรูปเดิมออกมาเพื่อลบรูปเดิมก่อน ค่อยอัปเดทรูปใหม่ไป
งงไหมครับ
Date :
2010-08-29 03:09:36
By :
PlaKriM
ดูโค๊ดให้หน่อยค่ะ มันแก้ไขรูปไม่ได้
Code (PHP)
<?
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
mysql_query("SET CHARACTER SET utf-8");
$objDB = mysql_select_db("gallery");
//ทำ resize รูป
for($i=0;$i<count($_FILES["fileUpload"]["name"]);$i++)
{
if(trim($_FILES["fileUpload"]["tmp_name"][$i]) != "")
{
$images = $_FILES["fileUpload"]["tmp_name"][$i];
$new_images = "Thumbnails_".$_FILES["fileUpload"]["name"][$i];
copy($_FILES["fileUpload"]["tmp_name"][$i],"../MyResize/".$_FILES["fileUpload"]["name"][$i]);
$width=100; //*** Fix Width & Heigh (Autu caculate) ***//
$size=GetimageSize($images);
$height=round($width*$size[1]/$size[0]);
$images_orig = ImageCreateFromJPEG($images);
$photoX = ImagesX($images_orig);
$photoY = ImagesY($images_orig);
$images_fin = ImageCreateTrueColor($width, $height);
ImageCopyResampled($images_fin, $images_orig, 0, 0, 0, 0, $width+1, $height+1, $photoX, $photoY);
ImageJPEG($images_fin,"../MyResize/".$new_images);
ImageDestroy($images_orig);
ImageDestroy($images_fin);
echo "Resize Successful.<br>";
//*** UPDATE Record ***//
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
$objDB = mysql_select_db("gallery");
$strSQL = "UPDATE picture SET ";
$strSQL .="(Thumbnails,PicName,album_id) VALUES ('".$new_images."','".$_FILES["fileUpload"]["name"][$i]."','$album_id')";
$objQuery = mysql_query($strSQL);
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$pic = $row['images'];
$flgDelete = @unlink($pic);
}
if($flgDelete)
{
echo "File Deleted";
echo "<a href = 'show_upload.php'>กลับ</a>";
}
else
{
echo "File can not delete";
echo "<a href = 'show_upload.php'>กลับ</a>";
}
}
?>
Date :
2010-08-29 10:20:10
By :
nongjar
$strSQL = "UPDATE picture SET ";
$strSQL .="(Thumbnails,PicName,album_id) VALUES ('".$new_images."','".$_FILES["fileUpload"]["name"][$i]."','$album_id')";
ดูนี่แล้วสะดุดตาเลย เนื่องจากไม่มี where ว่าจะอัปเดทไอดีไหน ดังนั้น ถ้ามันไม่ error มันจะเป็นข้อมูลเดียวกันหมดเลย แล้วก็ผมไม่เคยเขียน sql syntax แบบนี้เลย เคยแต่ update set field = value where id = $id
Date :
2010-08-29 12:45:49
By :
PlaKriM
Code (PHP)
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
$objDB = mysql_select_db("gallery");
$strSQL = "UPDATE picture SET ";
$strSQL .="(Thumbnails,PicName,album_id) VALUES ('".$new_images."','".$_FILES["fileUpload"]["name"][$i]."','$album_id')";
$strSQL .=" WHERE FilesID = '".$_POST["FilesID"]."' ";
$objQuery = mysql_query($strSQL);
ก็ไม่ได้อ่ะค่ะ
Date :
2010-08-29 13:50:19
By :
nongjar
echo $strSQL ออกมาดูครับ
Date :
2010-08-29 14:00:44
By :
PlaKriM
ไม่มีอะไรแสดงเลยอ่ะค่ะ
Date :
2010-08-29 14:12:31
By :
nongjar
ไม่แสดงก็หมายถึงมันไม่เข้าลูปหรือเงื่อนไขไหนเลยครับ ลอง echo อะไรสักอย่าง นอกลูป ในลูป ดูว่ามันเข้าเงื่อนไขอะไรบ้าง
Date :
2010-08-29 14:14:50
By :
PlaKriM
echo อะไรไม่ได้เลยอ่ะค่ะ
Date :
2010-08-29 14:18:59
By :
nongjar
หึๆ เอาโค๊ดล่าสุดมาดูหน่อยครับ
Date :
2010-08-29 14:21:22
By :
PlaKriM
Code (PHP)
<?
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
mysql_query("SET CHARACTER SET utf-8");
$objDB = mysql_select_db("gallery");
//ทำ resize รูป
for($i=0;$i<count($_FILES["fileUpload"]["name"]);$i++)
{
if(trim($_FILES["fileUpload"]["tmp_name"][$i]) != "")
{
$images = $_FILES["fileUpload"]["tmp_name"][$i];
$new_images = "Thumbnails_".$_FILES["fileUpload"]["name"][$i];
copy($_FILES["fileUpload"]["tmp_name"][$i],"../MyResize/".$_FILES["fileUpload"]["name"][$i]);
$width=100; //*** Fix Width & Heigh (Autu caculate) ***//
$size=GetimageSize($images);
$height=round($width*$size[1]/$size[0]);
$images_orig = ImageCreateFromJPEG($images);
$photoX = ImagesX($images_orig);
$photoY = ImagesY($images_orig);
$images_fin = ImageCreateTrueColor($width, $height);
ImageCopyResampled($images_fin, $images_orig, 0, 0, 0, 0, $width+1, $height+1, $photoX, $photoY);
ImageJPEG($images_fin,"../MyResize/".$new_images);
ImageDestroy($images_orig);
ImageDestroy($images_fin);
echo "Resize Successful.<br>";
//*** UPDATE Record ***//
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
$objDB = mysql_select_db("gallery");
$strSQL = "UPDATE picture SET ";
$strSQL .="(Thumbnails,PicName,album_id) VALUES ('".$new_images."','".$_FILES["fileUpload"]["name"][$i]."','$album_id')";
$strSQL .=" WHERE FilesID = '".$_POST["FilesID"]."' ";
$objQuery = mysql_query($strSQL);
$objQuery = mysql_query($strSQL);
print mysql_error();
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$pic = $row['images'];
$flgDelete = @unlink($pic);
}
if($flgDelete)
{
echo "File Deleted";
echo "<a href = 'show_upload.php'>กลับ</a>";
}
else
{
echo $strSQL ;
echo "<a href = 'show_upload.php'>กลับ</a>";
}
}
?>
Date :
2010-08-29 14:31:04
By :
nongjar
ก่อนอื่น ใส่
print_r($_FILES);
print_r($_POST);
ไว้ก่อน for loop ดูว่ามีอะไรออกมาบ้าง
Date :
2010-08-29 17:26:48
By :
PlaKriM
Array ( ) Array ( )
ออกเป็นแบบนี้อ่ะค่ะ
Date :
2010-08-29 20:13:50
By :
nongjar
ไม่เห็นมี่ค่าอะไรส่งมาเลย แล้วมันจะอัปเดทได้ยังไงครับเนี้ย
Date :
2010-08-29 21:19:42
By :
PlaKriM
Code (PHP)
<?
for($i=0;$i<count($_FILES["fileUpload"]["name"]);$i++)
{
if(trim($_FILES["fileUpload"]["tmp_name"][$i]) != "")
{
$images = $_FILES["fileUpload"]["tmp_name"][$i];
$new_images = "Thumbnails_".$_FILES["fileUpload"]["name"][$i];
copy($_FILES["fileUpload"]["tmp_name"][$i],"../MyResize/".$_FILES["fileUpload"]["name"][$i]);
$width=100; //*** Fix Width & Heigh (Autu caculate) ***//
$size=GetimageSize($images);
$height=round($width*$size[1]/$size[0]);
$images_orig = ImageCreateFromJPEG($images);
$photoX = ImagesX($images_orig);
$photoY = ImagesY($images_orig);
$images_fin = ImageCreateTrueColor($width, $height);
ImageCopyResampled($images_fin, $images_orig, 0, 0, 0, 0, $width+1, $height+1, $photoX, $photoY);
ImageJPEG($images_fin,"../MyResize/".$new_images);
ImageDestroy($images_orig);
ImageDestroy($images_fin);
echo "Resize Successful.<br>";
//*** Insert Record ***//
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
$objDB = mysql_select_db("gallery");
$strSQL1 = "UPDATE picture SET ";
//$strSQL1.="id_otop = '".$_GET["id_otop"]."' ";
$strSQL1.="Thumbnails = '".$new_images."' ";
$strSQL1.=",FilesName = '".$_FILES["fileUpload"]["name"][$i]."' ";
$strSQL1.="WHERE FilesID = '".$_GET["FilesID"]."' ";
$objQuery = mysql_query($strSQL1);
}
}
?>
<?
$objConnect = mysql_connect("localhost","root","123456") or die("Error Connect to Database");
$objDB = mysql_select_db("gallery");
$strSQL = "UPDATE picture SET ";
$strSQL1.="Thumbnails = '".$new_images."' ";
$strSQL1.=",FilesName = '".$_FILES["fileUpload"]["name"][$i]."' ";
$strSQL .="WHERE FilesID = '".$_POST["FilesID"]."' ";
$objQuery = mysql_query($strSQL);
if($objQuery)
{
echo "Save Done.";
//echo "<script language=\"javascript\">alert(\"แก้ไขข้อมูลเรียบร้อยแล้ว\");location=\"addproduct.php\";</script>";
}
else
{
echo "Error Save [".$strSQL."]";
}
mysql_close($objConnect);
?>
<? //} ?>
ผลที่ได้คือ Error Save [UPDATE picture SET WHERE FilesID = '' ]
Date :
2010-08-29 22:11:58
By :
nongjar
สวัสดี สวีดัดค่ะ
คือว่าต้องการ update รูปภาพนะค่ะ แต่ทำไม่ได้ ไม่รู้จะเปลี่ยนโค้ดตรงไหน พอดีว่าให้โปรแกรมเขียนให้นะค่ะ
โค้ดที่ว่ามี ดังนี้ค่ะ
<?php require_once('../Connections/ConnDB.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
function random_picname($len)
{
srand((double)microtime()*10000000);
$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
$ret_str = "";
$num = strlen($chars);
for($i = 0; $i < $len; $i++)
{
$ret_str.= $chars[rand()%$num];
$ret_str.="";
}
return $ret_str;
}
// echo random_password(8);
$filename=$_FILES["uPhoto"]["name"];
$ext = substr($filename, strpos($filename,'.'), strlen($filename)-1);
$picname = random_picname(15).$ext;
// ("UPDATE images SET img_path='$uPHoto' WHERE img_id=$newid")
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE user SET uPID=%s, uName=%s, uPhoto=%s, uUsername=%s, uPassword=%s, uPhoto=%s, uDOB=%s, uAddr=%s, uDistrict=%s, uProvince=%s, uPostalCode=%s, uPhone=%s, uMoblie=%s, uEB=%s, uCondisease=%s, uMail=%s, uCountry=%s, uBlood=%s WHERE uID=%s",
GetSQLValueString($_POST['uPID'], "text"),
GetSQLValueString($_POST['uName'], "text"),
GetSQLValueString($_POST['uSname'], "text"),
GetSQLValueString($_POST['uUsername'], "text"),
GetSQLValueString($_POST['uPassword'], "text"),
GetSQLValueString($_FILES['uPhoto']['name'],"text"),
GetSQLValueString($_POST['uDOB'], "text"),
GetSQLValueString($_POST['uAddr'], "text"),
GetSQLValueString($_POST['uDistrict'], "text"),
GetSQLValueString($_POST['uProvince'], "text"),
GetSQLValueString($_POST['uPostalCode'], "text"),
GetSQLValueString($_POST['uPhone'], "text"),
GetSQLValueString($_POST['uMoblie'], "text"),
GetSQLValueString($_POST['uEB'], "text"),
GetSQLValueString($_POST['uCondisease'], "text"),
GetSQLValueString($_POST['uMail'], "text"),
GetSQLValueString($_POST['uCountry'], "text"),
GetSQLValueString($_POST['uBlood'], "text"),
GetSQLValueString($_POST['uID'], "int"));
mysql_select_db($database_ConnDB, $ConnDB);
$Result1 = mysql_query($updateSQL, $ConnDB) or die(mysql_error()); $updateGoTo = "stdlist.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
mysql_select_db($database_ConnDB, $ConnDB);
$query_rsstd = "SELECT * FROM `user` WHERE `user`.uID=uID ORDER BY `user`.uID ASC";
$rsstd = mysql_query($query_rsstd, $ConnDB) or die(mysql_error());
$row_rsstd = mysql_fetch_assoc($rsstd);
$totalRows_rsstd = mysql_num_rows($rsstd);
?>
<!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>UPDATE student</title>
<script language="JavaScript" src="tigra_calendar/calendar_us.js"></script>
<link rel="stylesheet" href="tigra_calendar/calendar.css">
<style type="text/css">
<!--
.???? {
text-align: left;
font-size: 18px;
}
body,td,th {
color: #FF0000;
}
.style11 {color: #000000}
-->
</style>
</head>
<fieldset style="width:800px;"><center><body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFCC">
<tr>
<td width="24" background="../images/h2--.png"><img src="../images/h2.png" width="24" height="46" /></td>
<td width="1190" background="../images/h2--.png"><div align="left"><span class="style11"><font size="6">Update Student</font></span></div></td>
</tr>
</table>
<br /><br /><br />
<form action="<?php echo $editFormAction; ?>" id="form1" name="form1" method="POST" enctype="multipart/form-data">
<div align="left">
<table width="609" height="685" border="0" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000">
<tr>
<td height="38" align="left" bordercolor="#FF0000" background="../images/table-line-bg.png" bgcolor="#FFFFFF"><strong>Student ID: </strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uPID" type="text" id="uPID" value="<?php echo $row_rsstd['uPID']; ?>" size="42" /></td>
<td width="326" rowspan="18" align="left" valign="top" bgcolor="#FFFFFF" ><label>
<input type="submit" name="Submit" value="Update" style="width:100px; height:70px; font-size:large;" />
</label>
<p>
<label>
<input type="submit" name="Submit2" value="Cancel" style="width:100px; height:50px; font-size:large;" />
</label>
</p></td>
</tr>
<tr>
<td width="161" height="39" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Name:</strong></td>
<td width="326" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uName" type="text" id="uName" value="<?php echo $row_rsstd['uName']; ?>" size="42" /></td>
</tr>
<tr background="../images/table-line-bg.png">
<td height="36" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Sername:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uSname" type="text" id="uSname" value="<?php echo $row_rsstd['uSname']; ?>" size="42" /></td>
</tr>
<tr background="../images/table-line-bg.png">
<td height="42" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Personal ID:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uUsername" type="text" id="uUsername" value="<?php echo $row_rsstd['uUsername']; ?>" size="42" /> </td>
</tr>
<tr>
<td height="42" align="left" bgcolor="#FFFFFF" background="../images/table-line-bg.png"><strong>Password:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uPassword" type="password" id="uPassword" value="<?php echo $row_rsstd['uPassword']; ?>" size="42" /> </td>
</tr>
<tr><td height="42" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png"><strong>Date of Birth:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uDOB" type="text" id="uDOB" value="<?php echo $row_rsstd['uDOB']; ?>" size="42" />
<script language="JavaScript">
new tcal ({
// form name
'formname': 'form1',
// input name
'controlname': 'bDate'
});
</script></td>
<tr>
<td height="80" align="left" valign="top" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Address:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><textarea name="uAddr" cols="40" rows="4" id="uAddr"><?php echo $row_rsstd['uAddr']; ?></textarea></td>
</tr>
<tr>
<td height="29" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><p align="left"><strong>District</strong>:</p></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uDistrict" type="text" id="uDistrict" value="<?php echo $row_rsstd['uDistrict']; ?>" size="42" /></td>
</tr>
<tr>
<td height="33" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Province:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uProvince" type="text" id="uProvince" value="<?php echo $row_rsstd['uProvince']; ?>" size="42" /></td>
</tr>
<tr>
<td height="33" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Country:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uCountry" type="text" id="uCountry" value="<?php echo $row_rsstd['uCountry']; ?>" size="42" /> </td>
</tr>
<tr>
<td height="33" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Postal code:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uPostalCode" type="text" id="uPostalCode" value="<?php echo $row_rsstd['uPostalCode']; ?>" size="42" /></td>
</tr>
<tr>
<td height="35" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Tel:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uPhone" type="text" id="uPhone" value="<?php echo $row_rsstd['uPhone']; ?>" size="42" /></td>
</tr>
<tr>
<td height="37" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Mobile:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uMoblie" type="text" id="uMoblie" value="<?php echo $row_rsstd['uMoblie']; ?>" size="42" /></td>
</tr>
<tr>
<td height="33" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Graduated:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uEB" type="text" id="uEB" value="<?php echo $row_rsstd['uEB']; ?>" size="42" /></td>
</tr>
<tr>
<td height="32" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Condisease:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uCondisease" type="text" id="uCondisease" value="<?php echo $row_rsstd['uCondisease']; ?>" size="42" /> </td>
</tr>
<tr>
<td height="32" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Blood:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uBlood" type="text" id="uBlood" value="<?php echo $row_rsstd['uBlood']; ?>" size="42" /> </td>
</tr>
<tr>
<td height="32" align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>E-mail:</strong></td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uMail" type="text" id="uMail" value="<?php echo $row_rsstd['uMail']; ?>" size="42" /></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><strong>Upload Photo </strong> </td>
<td align="left" bgcolor="#FFFFFF"background="../images/table-line-bg.png" ><input name="uPhoto" type="file" id="uPhoto" value="<?php echo $row_rsstd['uPhoto']; ?>" size="42" /></td>
</tr>
</table>
<input name="uID" type="hidden" id="uID" value="<?php echo $row_rsstd['uID']; ?>">
<input type="hidden" name="MM_update" value="form1">
</div>
</form>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
</body>
</center></fieldset>
</html>
<?php
mysql_free_result($rsstd);
?>
ตรงบริเวณ โค้ด update นะค่ะ พี่คนไหนใจดีช่วยหน่อยนะค่ะ ขอบคุณมากๆเลยค่ะ
Date :
2011-02-22 12:30:56
By :
ธัญญารัตน์
Load balance : Server 02