?? updatenotebook.php
字號:
<?php
echo"<META HTTP-EQUIV=\"Refresh\" Content=\" 0;URL=exa10-2.php\">";
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">";
if($date=="") {$date="2002-1-1";}
if($id != "")
{
$connect = @mysql_connect("localhost", "root", "");
mysql_select_db("NoteBook", $connect);
$query1 = "update NoteBook set ID='".$id."', UserName='".$name."', Date='".$date;
$query1 = $query1."', Content='".$content."'";
echo "$query1";
$result = mysql_query($query1);
mysql_close($connect);
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -