Removed mysql reference, converted to EZSQL

git-svn-id: https://develop.svn.wordpress.org/trunk@258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-07-19 22:51:43 +00:00
parent 6a71d690b0
commit 92ce55a05d
2 changed files with 16 additions and 20 deletions
+2 -3
View File
@@ -2,8 +2,7 @@
<!-- you can START editing here -->
<?php // don't touch these 2 lines
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc); if ($resultc) {
$resultc = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date"); if ($resultc) {
?>
<h2>Trackbacks</h2>
@@ -12,7 +11,7 @@
<p><em><?php trackback_url() ?></em></p>
<ol id="trackbacks">
<?php /* this line is b2's motor, do not delete it */ while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); ?>
<?php /* this line is b2's motor, do not delete it */ foreach ($resultc as $rowc) { $commentdata = get_commentdata($rowc->comment_ID); ?>
<li id="trackback-<?php comment_ID() ?>">
<?php comment_text() ?>