真的不知道怎麼了這裏,但它不是在頁面上返回任何東西..我慢慢地改變一切從MySQL到新的MySQLi庫MySQLi取回陣列返回null
<?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
首先,證明您完全連接到數據庫。你會怎麼做?你怎麼知道它的工作? – Cups