찾다

 >  Q&A  >  본문

드롭다운 박스의 상품정보와 상품 카테고리 사진을 수정하는 방법은 무엇인가요?

 <?php

     Session_Start();

     header('content-type:text/html;charset=utf-8');

     include_once('conn.php');

     // $GID= $_SESSION["GID"];

     // $GName=$_SESSION["GName"];

     // $GPrice=$_SESSION["GPrice"];

     // $GContent=$_SESSION["GContent "];

     // $GImage=$_SESSION["GImage"];

     $gid=$_GET['id'];

     $sql="GID=$gid";

인 상품에서 * 선택 $query = mysql_query($sql);

     $row=mysql_fetch_assoc($query);

?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>修改商product</title>

<link rel="stylesheet" href="styles/global.css" type="text/CSS" /> ;

</head>

<body>

<h3>修改商product</h3>

<form method = "post" action="checkaddPro.php" enctype="multipart/form -data">

<table width="70%"  border="1" cellpadding="5" cellpacing="0" bgcolor="#cccccc">

<tr>

<td align="right">商상품 이름称</td>

<td><input type="text" name="pName"  placeholder="<?php echo $row['GName']?> ; "/></td>

</tr>

<tr>

<td align="right">商品分类</td>

<td>

< ;div id="class">

<select name="CID">

<?php 

         foreach($row as $rows){

?>

<옵션 값= "<?php echo $rows['CID'];?>"><?php echo $rows['CName']?></option>

<?php 

  };

?>

</select>

</div>

</td>

</tr>

<tr>

<td align="right">商product价格</td>

<td><입력 유형 ="text" name="mPrice"  placeholder="<?php echo $row['GPrice']?>"/></td>

</tr>

<tr>

<td align="right">商품描述</td>

<td>

<textarea name="pDesc" id="editor_id" style="width:100%;height:150px ;"><?php echo $_SESSION["GContent"];></textarea>

</td>

</tr>

<tr>

<td align="right">商상품图 Pictures</td>

<td>

    <!-- <label for="file">请选择:</label> -->

    <input type="file" name="file" id="file" value="$GImage" />

<!-- <a href="javascript:void( 0)" id="selectFileBtn">添加附件</a>

<div id="attachList" class="clear"></div> -->

</td>

</tr>

<tr>

<td colspan="2"><input type="submit"  value="修改商품" /></td>

</tr>

</table>

</form>

</body>

</html>

QQ图片20171024174047.png

2590일 전840

모든 응답(0)나는 대답할 것이다

답장 없음
  • 취소회신하다