⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_index.php

📁 自制国外大学学校计算机学院网站
💻 PHP
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="comp3.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="This page is the homepage for Loughbourgh University Undergraduate courses in Computer Science" />
<meta name="keywords" content="computer, computer science, artificial intelligence, e-business, information, technology, management, foundation, mathematics, maths, home" />
<title>Computer Science Depatment</title>
<style type="text/css">
<!--
.style1 {font-size: xx-small}
-->
</style>
<?php
session_start();
?>
</head>

<body>
<?php
if($_SESSION['admin']=="OK")
 {
  $conn=mysql_connect ("co-project.lboro.ac.uk", "group04", "grp55dnv");
  mysql_select_db("group04");
  $exec="select * from contents";
  $result=mysql_query($exec);
  while($rs=mysql_fetch_object($result))
     {
      echo "<table><tr><td>Name:".$rs->name."</td></tr>"; 
      echo "<tr><td>Comments:".$rs->content."</td></tr></table><br/>";
      echo  "<a href=modify.php?id=".$rs->id." >Modify</a>      <a href=delete.php?id=".$rs->id." >Delete</a><br>";
	  
	  echo "............................................................................................................................."; 
     }
 echo "<br><br><br><br><br><a href=index.php >Back to Index.php/a>";
  mysql_close();
 }else{
 echo "<p>You do not have permission to view this page</p>";
 }


?>
</body>
</html>

⌨️ 快捷键说明

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