SELECT `task` FROM `mydata` WHERE `user_id` = ?
$tasks = mysqli_query($connect, "SELECT `task` FROM `mydata` WHERE `user_id` =".$_SESSION['user']['id']);
if (mysqli_num_rows($tasks) > 0) {
while($user = mysqli_fetch_assoc($result)) {
echo $result['task'];
}
}
function aftermore2($content) {
$ads = (function_exists('the_ratings')) ? the_ratings();
$content=preg_replace('#<span.*?id="more-(.*?)".*?></span>#','<span id="more-\1"></span><center>'.$ads.'</center>',$content);
return $content;
}
add_filter('the_content', 'aftermoreads');