Created
October 15, 2015 14:50
-
-
Save Dinamiko/07dc28789be87bd6acfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Devuelve el total de registros de la tabla encuesta | |
* @return int $total registros | |
*/ | |
function encuesta_get_registros() { | |
global $wpdb; | |
$table_name = $wpdb->prefix . "encuesta"; | |
$total = $wpdb->get_results( "SELECT * FROM $table_name" ); | |
return count( $total ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment