gpt4 book ai didi

PHP 短标签未按预期工作

转载 作者:太空宇宙 更新时间:2023-11-03 10:54:15 25 4
gpt4 key购买 nike

<分区>

我试图通过将 html 代码与其结合来使我的 php 页面正常工作。这是源代码:

<?

$username="username";
$password="password";
$db_name="db_name";

mysql_connect('localhost',$username,$password) or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

$userstable='profile';
$query = "SELECT * FROM $userstable order by id";
$result = mysql_query($query) or die(mysql_error());

?>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DayZSC | Showlist</title>
<meta charset="utf-8" />
<link type="text/css" rel="stylesheet" href="styles.css" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>

<div class="container">

<div id="logo">
<img src="img/logo.png" />
</div>

<?
while ($row=mysql_fetch_array($result)) {
?>

<div class='p_content'>
<h3>
<?
echo ".$row['name'].";
?>
</h3>
<p style="text-align: justify;">
<table align="center"><tbody><tr>
<td>Copies Sold (Week)</td>
<td>11152</td>
</tr>
<tr>
<td>Copies pirated (Week)</td>
<td>124214</td>
</tr>
</tbody></table>
</p>
<h2><a href="#">Comments</a></h2><br /><br />
</div>

<?
}
?>

<div id="footer">All rights reserved &copy 2014 | Designed by <a href="http://berdyevcreations.com" target="_blank" style="color: #000;">BerdyevCreations</a></div>

</div>

</body>
</html>

因此,每当我尝试运行此页面时,它只会给我一片空白。也找不到错误日志。请帮忙?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com