?? editvotes.php
字號:
<?php
require("notaccess.php");
?><?php
$id=$_POST["idd"];
$types=$_POST["types"];
$title=$_POST["title"];
$submit=$_POST["submit"];
$db=@mysql_connect("localhost","root","micronsky.net") or die("數據庫連接失敗");
mysql_select_db("vote",$db);
if ($submit) {
$sql="update title set types=$types,title='$title' where id=$id";
$result=mysql_query($sql,$db);
echo "<script>alert('修改成功');location.href='vitevote.php';</script>";
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -