Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

Eventyret on "Help with $wpdb"

$
0
0

^
Tested something i almost got to work but when did this it does not show anything

<?php
$comment_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM wp_iphorm_form_entry_data WHERE  <code>value</code> LIKE  'reg%';"));
echo '<p>Total comments: ' . $comment_count . '</p>';

I just used comment_count php i found just to test. This results in nothing.


Viewing all articles
Browse latest Browse all 5527

Trending Articles