custom wordpress query using wpdb without wordpress page template.

<?php
$mydb = new wpdb('sigma_db','sigma$#2018','sigamadb','localhost');
$rows = $mydb->get_results("select `user_login`,`user_pass`,`user_email` from `wp_users`");
echo "<ul>";
foreach ($rows as $obj) :
   echo "<li>".$obj->user_login."</li>";
endforeach;
echo "</ul>";
?>

Comments

Popular posts from this blog

dynamic create multiple ckeditor onclick event using jquery

get lat and long from city name using jquery

membership registration and login system in php