keyword_add.php

来自「《PHP和MySQL Web开发》(第三版) Source」· PHP 代码 · 共 20 行

PHP
20
字号
<?php  include_once('include_fns.php');  $handle = db_connect();  $story = $_REQUEST['story'];  $keyword = $_REQUEST['keyword'];  $weight = $_REQUEST['weight'];  if(check_permission($_SESSION['auth_user'], $story))  {    $query = "insert into keywords (story, keyword, weight)              values ($story, '$keyword', $weight)";    $handle->query($query);  }  header("Location: keywords.php?story=$story");?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?