查看文件: edit_userdoc.php
大小: 1.45 KB
类型: application/octet-stream
<?php require('system/login.php'); ?> <?php require_once('../Connections/BE2.php'); ?> <?php if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) { $updateSQL = sprintf("UPDATE userdoc SET t3='%s' WHERE t1='%s'",$_POST['t3'],$_POST['t1'] ); mysql_select_db($database_BE2, $BE2); $Result1 = mysql_query($updateSQL, $BE2) or die(mysql_error()); } mysql_select_db($database_BE2, $BE2); //$query_Rt21 = "SELECT * FROM product_order_data WHERE 1 ORDER BY mem_auto DESC" ;//,$colname_Rt2 // t1 2 會員條款 $query_Rt2 = "SELECT * FROM userdoc WHERE t1=2 ";// 會員條款 $Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); //class="ckeditor" ?> <form action="main.php?act=edit_userdoc" method="post" name="form1" id="form1"> <table width="100%" align="center"> <tr valign="baseline"> <td valign="top" nowrap="nowrap"> <textarea name="t3" id="t3" rows="40" cols="80" ><?= $row_Rt2['t3']; ?></textarea></td> </tr> <tr valign="baseline"> <td align="center" nowrap="nowrap"><input type="submit" value="更新記錄" /></td> </tr> </table> <input type="hidden" name="t1" id="t1" value="<?= $row_Rt2['t1']; ?>" /> <input type="hidden" name="MM_update" value="form1" /> <input name="url" type="hidden" id="url" value="<? echo $_SERVER['HTTP_REFERER'];?>" /> </form> <?php mysql_free_result($Rt2); ?>
保存
取消
返回文件列表