真的不知道这里发生了什么,但它没有在页面上返回任何内容。我正在慢慢将所有内容从 MySQL 更改为新的 MySQLi
<?php
include_once "php_includes/db_conx.php";
$query = "SELECT * FROM testimonials ORDER BY id ASC LIMIT 32";
$result = mysqli_query($query) or die (mysqli_error());
while ($row = mysqli_fetch_array($result)){
$testtitle = $row['testtitle'];
$testbody = $row['testbody'];
$compowner = $row['compowner'];
$ownertitle = $row['ownertitle'];
$compname = $row['compname'];
$compwebsite = $row['compwebsite'];
$testsList .= '<div class="gekko_testimonial testimonial gekko_testimonial_speech">
<div class="gekko_main"><div class="gekko_headline">' . $testtitle . '</div>
<p>' . $testbody . '</p>
</div>
<div class="speech_arrow"></div>
<span class="gekko_who_client_name">' . $compowner . ' of ' . $compname . '</span>
<span class="gekko_who_job_title">' . $ownertitle . '</span>
<span class="gekko_who_website">View the Website... <a href="http://' . $compwebsite . '" target="_blank">' . $compwebsite . '</a></span>
</div>';
}
?>
非常感谢任何帮助!<?php echo $testslists; ?>
在我的html中我也是你!非常感谢 Phillip Dews