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 > ต้องการเปลี่ยนไฟล์ "แก้ไข" ให้สามารถ แก้ไขรูปที่ลงไปได้ด้วย ผมต้องเพิ่มอะไรบ้างครับ



 

ต้องการเปลี่ยนไฟล์ "แก้ไข" ให้สามารถ แก้ไขรูปที่ลงไปได้ด้วย ผมต้องเพิ่มอะไรบ้างครับ

 



Topic : 080704



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



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




ของเดิมเขาเขียนมาไม่สามารถเพิ่มเติม หรือแก้ไขรูปได้

ผมจะต้องทำอย่างไรบ้างครับ

อันนี้ไฟล์ที่โพสที่แลก

Code (PHP)
<?
include("config.inc.php");

// เช็คหมวดของเว็บบอร์ด
	mysql_connect($host,$user,$passwd);
	$c_sql = "select * from shop_category where cat_name='$Category' ";
	$c_result = mysql_db_query($dbname,$c_sql);
	$c_NRow = mysql_num_rows($c_result);
	$c_row = mysql_fetch_array($c_result);
	// กำหนดตัวแปร
		$name=$c_row["name"];
		$address=$c_row["address"];
		$tel=$c_row["tel"];
		$bankname=$c_row["namebank"];
		$bank=$c_row["bank"];
		$subbank=$c_row["subbank"];
		$numbank=$c_row["numbank"];
		$cat_name=$c_row["cat_name"];
		$enddateshop=$c_row["enddateshop"];
		$Limiddata=$c_row["Limiddata"];

	$date_chk=date("Y-m-d");			
	
if ($cat_name!=$uid) {
		echo "<center><br>";
		echo "<font color=red size=+1> เพิ่มสินค้าได้เฉพาะเจ้าของร้านเท่านั้นครับ</font>";
		echo "<br>";
		echo "</center>";
		exit();		
	}
if($enddateshop<$date_chk){
		echo "<center><br>";
		echo "<font color=red size=+1>กรุณาต่ออายุร้านค้าก่อนนะครับ</font>";
		echo "<br>";
		echo "</center>";
		exit();		
	}

// เช็คจำนวนสินค้าในร้าน ว่าเกินกำหนดหรือยัง

	mysql_connect($host,$user,$passwd);
	$sql = "select No from shop_data where Category='$Category' and pst='0' ";
	$result = mysql_db_query($dbname,$sql);
	$NRow = mysql_num_rows($result);
	
	if($NRow>=$Limiddata) {echo "<center><br>";
		echo "<font color=red size=+1>จำนวนสินค้าในร้านท่าน เต็มจำนวน Limid แล้วครับ</font>";
		echo "<br><font color=red size=+1>ซึ่งร้านของท่านสามารถเพิ่มสินค้าในร้านได้เพียง $Limiddata รายการ</font>";
		echo "<br><font color=red size=+1>กรุณาลบสินค้าบางรายการที่มีคนบูชาไปแล้ว เพื่อที่จะเพิ่มสินค้าใหม่ครับ</font><br>";
		echo "</center>";
		exit();		
	}


// ตัวเช็คหมวดเว็บบอร์ด
	$c_sql1 = "select * from shop_category ";
	$c_result1 = mysql_db_query($dbname,$c_sql1);

mysql_close
// จบการเช็ค

?>	
<html><head><title>ระบบเพิ่มสินค้า</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.style2 {font-size: 36px}
body,td,th {
	font-size: 12px;
}
.style4 {font-size: 18px}
-->
</style>
</head>
<?
include("head.php");
?>
<link href="./style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style5 {color: #FF0000}
-->
</style>
<body>
<center>
  <font color=#9400D3><span class="style2"><br>
  </span></font>
  <table width="68%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td bgcolor="#00FF00"><table width="100%" border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td valign="top" bgcolor="#00FF00"><div align="center"><span class="style4">ระบบเพิ่มสินค้าใหม่</span></div></td>
        </tr>
        <tr>
          <td valign="top" bgcolor="#CCCCCC"><form method=post action="post.php?Category=<? echo $Category; ?>" name="webForm" onSubmit="return check()" ENCTYPE="multipart/form-data">
            <div align="center">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td bgcolor="#99FF00"><div align="center">
                    <p><br>
                      คุณกำลังเพิ่มสินค้าในร้าน</p>
                        <p>
                          <? 
	
echo "<font color='#FF0000' ><b>$nlist </b></font>"; ?>
                          <br>
                          <br>
                          </p>
                      </div></td>
                    </tr>
                </table>
                  <br>
              </div>
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                <tr>
                  <td bgcolor="#FFFFFF"><table width="100%">
                    <tr>
                      <td><table width="100%" border="0" cellpadding="3" cellspacing="3">
                        <tr bgcolor="#fbfbfb">
                          <td width="26%"><div align="right"><strong><font color="#000099"  face="MS Sans Serif">ชื่อสินค้า</font></strong></div></td>
                                <td width="5%"><div align="center"><img src="pic/checklist.gif" width="13" height="13"></div></td>
                                <td width="69%"><input name="QTitle" type=text class="blue" size=52 maxlength=100></td>
                              </tr>
                        <tr>
                          <td valign="top" bgcolor="#fbfbfb"><div align="right"><font color="#000099"  face="MS Sans Serif"><strong>รายละเอียดสินค้า</strong></font></div></td>
                                <td valign="top" bgcolor="#fbfbfb"><div align="center"><img src="pic/checklist.gif" width="13" height="13"></div></td>
                                <td bgcolor="#fbfbfb"><textarea name="QNote" cols="55" rows="5" class="text_box"></textarea></td>
                        </tr>
                        <tr bgcolor="#fbfbfb">
                          <td valign="top"><div align="right"><font color="#000099"  face="MS Sans Serif"><strong>รูปแบบพิเศษ</strong></font></div></td>
                                <td>&nbsp;</td>
                                <td><a href="javascript:setsmile('[---]')"><img src="pic/indent.gif" alt="ย่อหน้า" width="18" height="17" border=0></a> <a href="javascript:setBold()"><img src="pic/b.gif" alt="ตัวหนา" width="18" height="17" border=0></a> <a href="javascript:setsup()"><img src="pic/sup.gif" alt="ตัวยก" width="18" height="17" border=0></a> <a href="javascript:setsub()"><img src="pic/sub.gif" alt="ตัวห้อย" width="18" height="17" border=0></a> <a href="javascript:setglow()"><img src="pic/glow.gif" alt="ตัวหนังสือเรืองแสง" width="18" height="18" border=0></a> <a href="javascript:setshadow()"><img src="pic/shadow.gif" alt="ตัวหนังสือมีเงา" width="18" height="17" border=0></a> <a href="javascript:setItalic()"><img src="pic/i.gif" alt="ตัวเอียง" width="18" height="17" border=0></a> <a href="javascript:setUnderline()"><img src="pic/u.gif" alt="เส้นใต้" width="18" height="17" border=0></a> <a href="javascript:setColor('red','แดง')"><img src="pic/redcolor.gif" alt="สีแดง" width="18" height="17" border=0></a> <a href="javascript:setColor('green','เขียว')"><img src="pic/greencolor.gif" alt="สีเขียว" width="18" height="17" border=0></a> <a href="javascript:setColor('blue','น้ำเงิน')"><img src="pic/bluecolor.gif" alt="สีน้ำเงิน" width="18" height="17" border=0></a> <a href="javascript:setColor('orange','ส้ม')"><img src="pic/orangecolor.gif" alt="สีส้ม" width="18" height="17" border=0></a> <a href="javascript:setColor('pink','ชมพู')"><img src="pic/pinkcolor.gif" alt="สีชมพู" width="18" height="17" border=0></a> <a href="javascript:setColor('gray','เทา')"><img src="pic/graycolor.gif" alt="สีเทา" width="18" height="17" border=0><br>
                                  <input name="QPass" type='hidden' class="blue" value="<? echo $pwd; ?>" size=20 maxlength=10>
                                  <input name="pst" type='hidden' class="blue" id="pst" value="0" size=20 maxlength=10>
                                  <input name="QName" type='hidden' class="blue" value="<? echo $uid; ?>" size=30 maxlength=20>
                                </a></td>
                              </tr>
                        <tr>
                          <td valign="top" bgcolor="#fbfbfb"><div align="right"><font color="#000099"  face="MS Sans Serif"><strong>หมวดหมู่</strong></font></div></td>
                                <td bgcolor="#fbfbfb"><div align="center"><img src="pic/checklist.gif" width="13" height="13"></div></td>
                                <td bgcolor="#fbfbfb"><label>
                                  <select name="subs" class="style5" id="subs">
                                      <option value="0">== กรุณาเลือกหมวดหมู่ พระ ==</option>
                                      <option value="1">พระบูชา</option>
                                      <option value="2">พระกรุทุกเนื้อ</option>
                                      <option value="3">พระกริ่ง-พระชัยวัฒน์</option>
                                      <option value="4">รูปหล่อ-รูปเหมือนปั้ม</option>
                                      <option value="5">เหรียญหล่อ-เหรียญปั้ม</option>
                                      <option value="6">พระเนื้อดิน เนื้อผง เนื้อว่าน</option>
                                      <option value="7">พระปิดตา</option>
                                      <option value="8">หลวงปู่ทวดทุกวัด</option>
                                      <option value="9">เครื่องรางของขลัง</option>
	                <option value="10">เบ็ดเตล็ดพระเครื่อง</option>
                                      <option value="11">ล๊อกเก็ต รูปภาพ หนังสือ</option>
                                    </select>
                                </label></td>
                              </tr>
                        <tr>
                          <td bgcolor="#fbfbfb"><div align="right"><font color="#000099"  face="MS Sans Serif"><strong>ราคา</strong></font></div></td>
                                <td bgcolor="#fbfbfb"><div align="center"><img src="pic/checklist.gif" width="13" height="13"></div></td>
                                <td bgcolor="#fbfbfb"><input name="Qpri" type=text class="blue" id="Qpri" size=10 maxlength=10>
                                  <font color="#000099"  face="MS Sans Serif"><strong>บาท </strong></font>โปรดใส่เครื่องหมาย <span class="style5">,</span> ขั้นหลักพัน </td>
                              </tr>
                        <tr>
                          <td bgcolor="#fbfbfb"><div align="right"><font color="#000099"  face="MS Sans Serif"><strong>สถานะ</strong></font></div></td>
                          <td bgcolor="#fbfbfb">&nbsp;</td>
                          <td valign="baseline" bgcolor="#fbfbfb"><label>
                            <select name="chk" class="style5" id="chk">
                              <option value="1">พร้อมเช่า</option>
                              <option value="2">พระโชว์</option>
                              <option value="3">เช่าแล้ว</option>
                            </select><input name="checkbox" type="radio" value="0" checked>
สินค้าปกติ
<input type="radio" name="checkbox" value="1">
สินค้าแนะนำ </label></td>
                        </tr>
                        <?
				  		echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic type=file class=blue></td></tr></table></td></tr>";



echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic1 type=file class=blue></td></tr></table></td></tr>";


echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic2 type=file class=blue></td></tr></table></td></tr>";



echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic3 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic4 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic5 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic6 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic7 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic8 type=file class=blue><br></td></tr></table></td></tr>";
echo "<tr bgcolor=#fbfbfb> 
                    <td valign=top><div align='right'><font color=#000099  face=MS Sans Serif><strong>แทรกภาพสินค้า</strong></font></div></td>
                    <td valign=top><div align='center'><img src='pic/checklist.gif'></div></td><td><table width=100% border=0>
                        <td> <input name=QPic9 type=file class=blue><br>
                            <font face=MS Sans Serif size=1 color=#FF0000>ขนาดภาพ ห้ามเกิน $Image_msg&nbsp;และ ไฟล์ Flash ขนาดห้ามเกิน $flashSize_msg</font></td></tr></table></td></tr>";
				  ?>
                        </table></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
              <div align="center"><br>
                <input name="submit" type=submit class="blue" value="โพสสินค้า" />
                <input name="reset" type=reset class="blue" value="  ยกเลิก  ">
                </div>
          </form></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <br>
  <br>
  <br>
<br>
<br>
</center>  
<?
include("footer.php");
?>
<script language="JavaScript">
function check()
{
      var v1 = document.webForm.QTitle.value;
      var v2 = document.webForm.QNote.value;
      var v3 = document.webForm.Qpri.value;
        if ( v1.length<5)
           {
           alert("กรุณาป้อนคำถาม อย่างน้อย 5 ตัวอักษรครับ ");
           document.webForm.QTitle.focus();           
           return false;
           }
        else if (v2.length<5)
           {
           alert("กรุณาป้อนรายละเอียด อย่างน้อย 5 ตัวอักษรครับ");
           document.webForm.QNote.focus();           
		   return false;
           }
        else if (v3.length==0)
           {
           alert("กรุณาป้อนราคาสินค้า");
           document.webForm.Qpri.focus();           
		   return false;
           }
        else
           return true;
}

function setURL()
{
	var temp = window.prompt('ใส่ URL ที่คุณต้องการสร้างเป็นลิงค์','http://'); 
	if(temp) setsmile('http://'+temp+'');
}

function setImage()
{
	var temp = window.prompt('ใส่ URL ของรูปที่คุณต้องการให้แสดงในกระทู้ของคุณ','http://'); 
	if(temp) setsmile('');
}

function setBold()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวหนา',''); 
	if(temp) setsmile(''+temp+'');
}

function setItalic()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวเอียง',''); 
	if(temp) setsmile(''+temp+'');
}
function setsup()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวยก',''); 
	if(temp) setsmile(''+temp+'');

}
function setsub()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวห้อย',''); 
	if(temp) setsmile(''+temp+'');
}
function setglow()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวเรืองแสง',''); 
	if(temp) setsmile('[glow]'+temp+'[/glow]');
}
function setshadow()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการทำเป็นตัวเรืองแสง',''); 
	if(temp) setsmile('[shadow]'+temp+'[/shadow]');
}
function setUnderline()
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการให้มีเส้นใต้',''); 
	if(temp) setsmile(''+temp+'');
}

function setColor(color,name)
{
	var temp = window.prompt('ใส่ข้อความที่คุณต้องการให้เป็นสี'+name,''); 
	if(temp) setsmile('[color='+color+']'+temp+'');
}

function setsmile(what)
{
	document.webForm.QNote.value = document.webForm.elements.QNote.value+" "+what;
	document.webForm.QNote.focus();
}
</script>
</body>
</html>



อันนี้ไฟล์แก้ไขที่เขาให้มา

Code (PHP)
<?
	include("config.inc.php");
// เช็คหมวดของเว็บบอร์ด
	mysql_connect($host,$user,$passwd);
	$u_sql = "select * from shop_category where cat_name='$Category' ";
	$u_result = mysql_db_query($dbname,$u_sql);
	$u_NRow = mysql_num_rows($u_result);
	$u_row = mysql_fetch_array($u_result);
				// กำหนดตัวแปร
				$date_chk=date("Y-m-d");
				$enddateshop=$u_row["enddateshop"];
		if($enddateshop<$date_chk){echo" กรุณาติดต่อเว็บมาสเตอร์เพื่อต่ออายุร้านค้าด้วยครับ"; exit();}

// ตัวเช็คหมวดเว็บบอร์ด
	$c_sql1 = "select * from shop_category ";
	$c_result1 = mysql_db_query($dbname,$c_sql1);

// ติดต่อ database เพื่ออ่านข้อมูล
	mysql_connect($host,$user,$passwd);
	$sql = "select * from shop_data where No='$No'";
	$result = mysql_db_query($dbname,$sql);
	$NRow = mysql_num_rows($result);
	
	if($NRow==0) { echo "Error2"; exit(); }

	$row = mysql_fetch_array($result);
	// กำหนดค่าตัวแปร เพื่อนำไปแสดง
	$Question = $row["Question"];
	$Note = $row["Note"];
	$Name = $row["Name"];
	$Nicname = $row["Nicname"];
	$Namer = $row["Namer"];
	$Member = $row["Member"];
	$Email = $row["Email"];
	$Date = $row["Date"];
	$Image = $row["Image"];
	$nphoto = $row["nphoto"];
	$pageviewdata = $row["pageview"];
	$resolution = $row["resolution"];
	$Category =$row["Category"];
	$pri = $row["pri"];
	$chk = $row["chk"];

		if($Category!=$uid){
			echo "<center>แก้ไขรายการได้เฉพาะเจ้าของร้านเท่านั้นครับ<br>"; 
			echo "<a href='javascript:history.back(1)'>[ กลับไปแก้ไข ] </a>";
			exit();
 				}

		
		$h1 = "";
		$h2 = "<center><a href=view.php?Category=$Category&pic=$nphoto1  target=_blank><img src=$path/$nphoto border=5  width=400 $crd alt=คลิ๊กที่ภาพ></a></center><br>";
		$h3 = "<center><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" $crd><param name=movie value=\"$path/$nphoto\"><param name=quality value=high><embed src=\"$path/$nphoto1 border=5  width=400\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" $crd></embed></object></center><br>";
		$h4 = "<br><center><<- - <a href=view-flash.php?Category=$Category&file=$nphoto target=_blank>ไฟล์ Flash นี้มีขนาดเกิน $flashWidth Pixel คลิ๊กเพื่อดูขนาดจริง</a> - ->></center><br><br>";

		if ((substr($nphoto,-3,3)=="swf") && ($resolution > 400)) {
				$a_photo = $h4;
			}
		elseif(substr($nphoto,-3,3)=="swf")
			{ 
				$a_photo = $h3;
			}
		elseif ($nphoto=="") 
			{ 
				$a_photo = $h1;
			}
		else {
				$a_photo = $h2;
			}
?>
<head><title>-=- : ระบบแก้ไข กระทู้ : -=-</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="./style.css" rel="stylesheet" type="text/css"></head>
<body background="pic/bg1.gif" leftmargin="0" topmargin="0">
<center><br>
<br>
	<form method=post action="edittopicok.php?Category=<? echo $uid ?>&No=<? echo $No ?>">
	  <table width="600"  border="5" cellpadding="5" cellspacing="1" bgcolor="#666666">
        <tr>
          <td bgcolor="#FFFFFF"><table width=100% border=0 cellpadding=2 cellspacing=1 bgcolor="#CCE9FD">
            <tr>
              <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                <tr>
                  <td bgcolor="#CCE9FD"><table width="100%" bgcolor="#CCE9FD">
                      <tr>
                        <td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCE9FD">
                            <tr>
                              <td colspan="3" valign="top"><div align="center">&nbsp;</div></td>
                              </tr>
                            <tr>
                              <td width="28%" valign="top"><div align="right"><strong><font color="#000099" size="1" face="MS Sans Serif">แก้ไขชื่อสินค้า</font></strong></div></td>
                              <td valign="top">&nbsp;</td>
                              <td><input name="QTitle" type="text" id="QTitle" value="<? echo $Question ?> " size="50"></td>
                            </tr>
                            <tr>
                              <td width="28%" valign="top"><div align="right"><strong><font color="#000099" size="1" face="MS Sans Serif">แก้ไขข้อความ</font></strong></div></td>
                              <td width="3%" valign="top"><div align="center"><img src="pic/checklist.gif"></div></td>
                              <td width="69%"><textarea name="QNote" cols="60" rows="5" class="text_box"><? echo $Note ?></textarea></td>
                            </tr>
                            <tr>
                              <td valign="top"><div align="right"><strong><font color="#000099" size="1" face="MS Sans Serif">แก้ไขหมวดหมู่</font></strong></div></td>
                              <td><div align="center"><img src="pic/checklist.gif" width="13" height="13"></div></td>
                              <td><label>
                                <select name="subs" class="art" id="subs">
                                  <option value="0">== กรุณาเลือกหมวดหมู่ พระ ==</option>
                                  <option value="1">พระบูชา</option>
                                  <option value="2">พระกรุทุกเนื้อ</option>
                                  <option value="3">พระกริ่ง พระชัยวัฒน์</option>
                                  <option value="4">รูปหล่อ รูปเหมือนปั้ม</option>
                                  <option value="5">เหรียญหล่อ เหรียญปั้ม</option>
                                  <option value="6">พระเนื้อดิน เนื้อผง เนื้อว่าน</option>
                                  <option value="7">พระปิดตา</option>
                                  <option value="8">หลวงปู่ทวด</option>
                                  <option value="9">เครื่องรางของขลัง</option>
                                  <option value="10">เบ็ดตเล็ดพระเครื่อง</option>
                                </select>
                              </label></td>
                            </tr>
                            <tr>
                              <td width="28%" valign="top"><div align="right"><strong><font color="#000099" size="1" face="MS Sans Serif">แก้ไขราคา</font></strong></div></td>
                              <td valign="top">&nbsp;</td>
                              <td><input name="Qpri" type="text" id="Qpri" value="<? echo $pri ?>" size="10" maxlength="10"></td>
                            </tr>
                            <tr>
                              <td width="28%" valign="top"><div align="right"><strong><font color="#000099" size="1" face="MS Sans Serif">แก้ไขสถานะ</font></strong></div></td>
                              <td valign="top">&nbsp;</td>
                              <td><select name="chk" class="arthead" id="chk">
                                <option value="1" selected>พร้อมเช่า</option>
                                <option value="2">พระโชว์</option>
                                <option value="3">เช่าแล้ว</option>
                                                            </select>
                                <input name="checkbox" type="radio" value="0" checked>
สินค้าปกติ
<input type="radio" name="checkbox" value="1">
สินค้าแนะนำ</td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td valign="top">&nbsp;</td>
                              <td><? if ($a_pic=="1") {
				  		echo "<table width=100% border=0>
                        <td>&nbsp;</td></tr></table>";
				  }
		else { echo ""; } ?></td>
                            </tr> 
                          
                        </table></td>
                      </tr>
                  </table> </td>
                </tr>
              
              </table></td>
            </tr>
            <tr>
              <td><input name="No" type="hidden" id="No" value="<? echo $No ?>">
                  <input name="Category" type="hidden" id="Category" value="<? echo $Category ?>"></td>
              <td><input name="submit" type=submit class="blue" value="ตกลง">
              <input name="Reset" type=reset class="blue" value="ยกเลิก"></td>
            </tr>
          </table></td>
        </tr>
      </table>
	</form>
	</center>
</body>
</html>




Tag : PHP, MySQL, HTML/CSS, JavaScript







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-07-07 13:51:52 By : jittapan View : 804 Reply : 3
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

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

ดูจากบทความนี้ครับ



Go to : PHP สร้างฟอร์มสำหรับ Upload รูปภาพลงในฐานข้อมูล MySQL พร้อมกับแบบ Form สำหรับการแก้ไขรูปภาพ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-07-07 14:43:34 By : mr.win
 


 

No. 2



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



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


อ่านแล้วครับ
ลองทำตามแล้วครับ

แต่ทำไม่ได้
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-07-08 00:35:01 By : jittapan
 

 

No. 3



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

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

คุณยังพยายามน้อยเกินไปครับ
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-07-08 06:35:32 By : mr.win
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ต้องการเปลี่ยนไฟล์ "แก้ไข" ให้สามารถ แก้ไขรูปที่ลงไปได้ด้วย ผมต้องเพิ่มอะไรบ้างครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 00
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 อัตราราคา คลิกที่นี่