我已将此代码添加到带有 .php 扩展名的网页中
<?php include_once("cssheadertop.php")?>
<link rel="stylesheet" href="button.css">
<?php include_once("cssheaderbottom.php")?>
Run Code Online (Sandbox Code Playgroud)
现在,cssheadertop.php 包含以下代码
<head>
<meta charset="utf-8">
<title>8mags - CSS Lessons</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../bootstrap.min.css" media="screen">
<link rel="stylesheet" href="../../style.css">
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Coda' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
cssheaderbottom.php 文件有以下代码
<style>
page specific style here.
</style>
</head>
Run Code Online (Sandbox Code Playgroud)
我想在中间添加元描述和元关键字标签
<?php include_once("cssheadertop.php")?>
Run Code Online (Sandbox Code Playgroud)
和
<?php include_once("cssheaderbottom.php")?>
Run Code Online (Sandbox Code Playgroud)
就像我添加的链接标签一样。
它会在渲染或 SEO 中造成任何问题吗?
这是我正在谈论的代码
<?php
$query = $mysqli->query("SELECT * FROM stories LIMIT 0, 10");
while($rows = mysqli_num_rows($query))
{
$title = $rows['TITLE'];
$writer = $rows['WRITER'];
$content = $rows['CONTENT'];
echo '<br/><br/>'.$title.'<br/><br/>';
}
?>
Run Code Online (Sandbox Code Playgroud)
当我在我的网页正文中添加此代码时,它会停止加载,加载圈就会继续.我正确连接到数据库,因为其他页面工作正常.这里发生了什么.