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

Eventyret on "Help with $wpdb"

$
0
0

Yeah got it to work almost now, the last thign i need to get is it from certain user

<?php
$fish_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM wp_iphorm_form_entry_data WHERE  <code>value</code>  LIKE 'Registrere fisk';"));
echo '<p>Total fish: ' . $fish_count . '</p>';
?>
This shows the total count indeed, but i want it to show what "username" only has posted in that field.

Viewing all articles
Browse latest Browse all 5527

Trending Articles