php作业求大神给个代码啊!!!大一完全不会
insert into Student values('05' , '周梅' , '1991-12-01' , '女'); insert into Student values('06' , '吴兰' , '1992-03-01' , '女'); insert into Student values('07' , '郑竹' , '1989-07-01' , '女'); insert into Student values('08' , '王菊' , '1990-01-20' , '女'); -- 课程表测试数据 insert into Course values('01' , '语文' , '02'); insert into Course values('02' , '数学' , '01'); insert into Course values
贴吧:php作者:Shash520 2024-05-30 20:07
php求助,卡在这一步了!!!
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>用户登录</title> </head> <body> <h2>用户登录</h2> <form action="login.php" method="post"> <label for="uid">用户名:</label> <input type="text" id="uid" name="uid" required><br><br> <label for="password">密码:</label> <input type="password" id="password" name="password" required><b
贴吧:php作者:Shash520 2024-06-09 23:09
杰然不同1236
文件夹css base.css 内容 table{ width:400px; text-align: center; } img{ height:100px; } ======= 文件夹efsimgs 图片 ====== 文件夹img 图片 ===== 文件books.sql CREATE TABLE 'books' ( 'id' int(10) unsigned NOT NULL AUTO_INCREMENT, 'name' varchar(255) NOT NULL, 'price' decimal(10,2) NOT NULL, 'author' varchar(100) NOT NULL, PRIMARY KEY ('id') ) ====== 文件index.php <?php define('IMG1','./img/1.png'); define('CSS','./css/base.css'); define('IMG2','./efsimags/2.jpg'); ?> <!DOCTYP
贴吧:电脑作者:北斗七星的指引 2022-06-23 16:49
梦华录的字错了是小事 安全代码可不能错
随着电视剧梦华录的热播,喜欢“挑刺”的观众老爷们又......一次找到了BUG。 看到这个我连忙用拼音打字在百度上敲了“目录”一词。 我寻思这这个字没错啊...... 这又是哪个装B的杠精在挑刺博眼球。找我男神啊不女神的麻烦是吧。正想开骂才发现原来是我草率了。 他们喷的是海报上的字。 额......还真没见过。 于是教授出来讲话了。复旦大学中文系教授郭永秉称“录”字的各种异体字并没有海报上多出一横的写法,他分析因为“彙”字可以写成“
贴吧:网络安全作者:NSA_网盾 2022-06-23 09:19
杰然不同1236 常用命令
文件夹css base.css 内容 table{ width:400px; text-align: center; } img{ height:100px; } ======= 文件夹efsimgs 图片 ====== 文件夹img 图片 ===== 文件books.sql CREATE TABLE 'books' ( 'id' int(10) unsigned NOT NULL AUTO_INCREMENT, 'name' varchar(255) NOT NULL, 'price' decimal(10,2) NOT NULL, 'author' varchar(100) NOT NULL, PRIMARY KEY ('id') ) ====== 文件index.php <?php define('IMG1','./img/1.png'); define('CSS','./css/base.css'); define('IMG2','./efsimags/2.jpg'); ?> <!DOCTYP
贴吧:电脑作者:北斗七星的指引 2022-06-23 17:57
回复:物联网phpXINWEN
conn.php
<?php
$conn = mysqli_connect("127.0.0.1","root","root","dbstudy") or die("数据库连接失败!");
mysqli_query($conn,"SET NAMES UTF8");
?>
news.php
<?php
include_once("conn.php");
session_start();
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<ul><?php
$selectSQLforNews = "SELECT * FROM `yu_type` ORDER BY `type_id`=1 DESC ";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
$rowforNews = mysqli_fetch_array($recodeforNews);
?>
<li><h4> <?php $str="一二三四";echo substr($str,0,3);?>、<?=$rowforNews["type_name"]?></h4><>
<li>
<ul><?php
$selectSQLforNews = "SELECT * FROM `yu_news` WHERE `type_id`=1 ORDER BY `news_hit`DESC LIMIT 0,5";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
while ($rowforNews = mysqli_fetch_array($recodeforNews))
{
?>
<li>·<?=$rowforNews["news_title"]?>[<?=$rowforNews["news_hit"]?>]<>
<?php
}
mysqli_free_result($recodeforNews);
?>
</ul>
</li>
<?php
$selectSQLforNews = "SELECT * FROM `yu_type` ORDER BY `type_id`=2 DESC ";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
$rowforNews = mysqli_fetch_array($recodeforNews);
?>
<li><h4> <?php $str="一二三四";echo substr($str,3,3);?>、<?=$rowforNews["type_name"]?></h4> </li>
<li>
<ul>
<?php
$selectSQLforNews = "SELECT * FROM `yu_news` WHERE `type_id`=2 ORDER BY `news_hit` DESC LIMIT 0,5";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
while ($rowforNews = mysqli_fetch_array($recodeforNews))
{
?>
<li>· <?=$rowforNews["news_title"]?>[<?=$rowforNews["news_hit"]?>] </li>
<?php
}
mysqli_free_result($recodeforNews);
?>
</ul>
</li>
<?php
$selectSQLforNews = "SELECT * FROM `yu_type` ORDER BY `type_id`=3 DESC ";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
$rowforNws = mysqli_fetch_array($recodeforNews);
?>
<li><h4><?php $str="一二三四";echo substr($str,6,3);?>、<?=$rowforNews["type_name"]?></h4> </li>
<li>
<ul>
<?php
$selectSQLforNews = "SELECT * FROM `yu_news` WHERE `type_id`=3 ORDER BY `news_hit` DESC LIMIT 0,5";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
while ($rowforNews = mysqli_fetch_array($recodeforNews))
{
?>
<li>· <?=$rowforNews["news_title"]?>[<?=$rowforNews["news_hit"]?>] </li>
<?php
}
mysqli_free_result($recodeforNews);
?>
</ul>
</li>
<?php
$selectSQLforNews = "SELECT * FROM `yu_type` ORDER BY `type_id`=4 DESC ";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
$rowforNews = mysqli_fetch_array($recodeforNews);
?>
<li><h4><?php $str="一二三四";echo substr($str,9,3);?>、<?=$rowforNews["type_name"]?></h4> </li>
<li>
<ul><?php
$selectSQLforNews = "SELECT * FROM `yu_news` WHERE `type_id`=4 ORDER BY `news_hit` DESC LIMIT 0,5";
$recodeforNews = mysqli_query($conn,$selectSQLforNews);
while ($rowforNews = mysqli_fetch_array($recodeforNews))
{
?>
<li>·<?=$rowforNews["news_title"]?>[<?=$rowforNews["news_hit"]?>] </li>
<?php
}
mysqli_free_result($recodeforNews);
?>
</ul>
</li>
</ul>
<?php
mysqli_close($conn);
?>
</body>
</html>
贴吧:php作者:dhfthdehceh 2021-06-18 10:44
PHPwww88xbocom17I76934555 连接MySQL数据库的三种方式
PHP连接MySQL数据库的三种方式(mysql、mysqli、pdo),结合实例形式分析了PHP基于mysql、mysqli、pdo三种方式连接MySQL数据库的相关操作技巧与注意事项。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。 PHP与MySQL的连接有三种API接口,分别是:PHP的MySQL扩展 、PHP的mysqli扩展 、PHP数据对象(PDO),下面针对以上三种连接方式做下总结,以备在不同场景下选出最优方案。 PHP的MySQL扩展是设计开发允许php应用与MySQL数据库交互的早期扩展。MySQL
贴吧:服务器作者:皇家公司客 2021-03-16 13:18
新?金宝网址PHPl6228719999
PHP连接MySQL数据库的三种方式(mysql、mysqli、pdo),结合实例形式分析了PHP基于mysql、mysqli、pdo三种方式连接MySQL数据库的相关操作技巧与注意事项。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。 PHP与MySQL的连接有三种API接口,分别是:PHP的MySQL扩展 、PHP的mysqli扩展 、PHP数据对象(PDO),下面针对以上三种连接方式做下总结,以备在不同场景下选出最优方案。 PHP的MySQL扩展是设计开发允许php应用与MySQL数据库交互的早期扩展。MySQL
贴吧:拉德作者:起名无能丶焕 2021-07-30 11:31
诚之和:php不支持mysql_query()吗
在php中,5.5.0及以上版本不支持mysql_query()函数,5.5.0以下版本支持。mysql_query()函数自PHP 5.5.0起被废弃,并在自PHP 7.0.0开始被移除。 本教程操作环境:windows7系统、PHP7.1版,DELL G3电脑 PHP自5.5.0版开始不支持mysql_query()函数。 mysql_query()函数自PHP 5.5.0起被废弃,并在自PHP 7.0.0开始被移除。应使用 MySQLi 或 PDO_MySQL 扩展来替换之,用以替代本函数的有: mysqli_query() PDO::query() 想要使用mysql_query()函数需要使用PHP 5.5.0以下的版本。 说明:mysql_query() mysql_query() — 发
贴吧:php作者:leng88887 2021-10-13 14:40
php newslist
<?php $selectSQL = "SELECT * FROM `yu_news`,`yu_type` WHERE `yu_news`.`type_id` = `yu_type`.`type_id` ORDER BY `news_id` DESC LIMIT 0,53"; $record = mysqli_query($conn,$selectSQL); ?> <body> <form action="" method="post"> <table bgcolor="#CCCCCC" width="1200" border="0" align="center" cellpadding="6" cellspacing="1"> <thead> <tr> <td width="10%" height="24" align="right" bgcolor="#FFCC33">新闻编号</td> <td width
贴吧:php作者:灰色与幽默 2021-06-17 14:21

大家都在搜

  • getsysteminfo
  • get_dbsize_info
  • getstartupinfo
  • bindgetuserinfo
  • proto oncogene
  • protodemocratic
  • js __proto__
  • getpathinfo
  • protoplasm
  • get info
  • infoset
  • ingot
  • proto2
  • proto3
  • info