can I use database retrieval query in global content blocks?
-
I would like to use database retrieval query in global content blocks plugin
this is possible?<?php
global $wpdb;
$result = $wpdb->get_results( “SELECT * FROM wp_yop_poll_answers where poll_id=1”);
foreach($result as $row)
{
echo $row->answer;}
?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘can I use database retrieval query in global content blocks?’ is closed to new replies.