I have this code in a php file inside the wordpress installation, it does not work, I do not know what is wrong.
global $wpdb;
$tableName = "wp_posts";
$result = $wpdb->get_results("SELECT * FROM $tableName");
foreach ($result as $row) {...
asked by
08.03.2017 / 19:52