updata1.php

来自「侃侃 实在是说不出深刻的东西哈」· PHP 代码 · 共 18 行

PHP
18
字号
<?
 session_start();
 if($_SESSION['admin']=="OK")
 {
  require('config.php');
  $conn=mysql_connect($host,$user,$password);
  mysql_select_db($db);
  mysql_query("set names GB2312");
  $exec="select * from gbooktable where id=".$_GET['id'];
  $exec="update gbooktable set info='".$_POST['post_info']."' where id=".$_POST['id'];
  $result=mysql_query($exec);
  
 }
 mysql_close();
 header("location:admin_index.php");
?>

⌨️ 快捷键说明

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