Php .htaccess从表中获取数据,但会使页面崩溃
请帮我解决这个简单的问题。我不明白为什么。 我使用了以下.htaccess文件。它从表中获取详细信息,但会使页面崩溃Php .htaccess从表中获取数据,但会使页面崩溃,php,.htaccess,Php,.htaccess,请帮我解决这个简单的问题。我不明白为什么。 我使用了以下.htaccess文件。它从表中获取详细信息,但会使页面崩溃 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^detail/([0-9]+) Details.php?ph=$1 [NC,L] 并显示表中的数据。但是页面崩溃了 RewriteEngine on Rewri
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^detail/([0-9]+) Details.php?ph=$1 [NC,L]
并显示表中的数据。但是页面崩溃了
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^detail/([0-9]+) Details.php?ph=$1 [NC,L]
这是我的php代码:
if(array_key_exists('test', $_POST)) {
$phone = $_POST['search'];
$quer="SELECT * FROM `user_table` ";
$result = $conn->prepare($quer);
$result->execute();
$row = $result->fetch(PDO::FETCH_ASSOC);
if($row){
echo " <div class=\"row\"><div class =\"col-lg-8 col-md-8 col-xs-8 col-md-8\">";
echo "<table class=\"table table-striped table-hover\">";
echo "<thead class=\"thead-inverse\">";
echo "<tr> <th>Name</th><th>Gender</th> <th>Scan</th> <th>Delivery</th> <th>Product</th></tr>";
echo "</thead>";
echo "<tbody>";
$phone = $row['Phone'];
echo "<tr><td>";
echo "<a href=\"Details.php?ph=".$phone."\">";
if(数组\u键\u存在('test',$\u POST)){
$phone=$_POST['search'];
$quer=“从“用户表”中选择*”;
$result=$conn->prepare($query);
$result->execute();
$row=$result->fetch(PDO::fetch_ASSOC);
如果($行){
回声“;
回声“;
回声“;
echo“名称性别扫描交付产品”;
回声“;
回声“;
$phone=$row['phone'];
回声“;
回声“;
如果页面崩溃,问题可能来自PHP代码,而不是重写规则,请在你说“崩溃”时显示你的PHP代码……它会给你什么错误消息?因为你的屏幕截图看起来很成功(除了断开的图像链接)它是关于HTMLsrc
属性中的相对路径。使它们成为根相对路径或指定一个
标记。