here i have a simple function but this show me data fom sql only in 1 div i want to show [ on div 1 show 1 data, in other div show 2 data, etc etc]...
function load_post($added_by)
{
    global $Connection;
    $SQL_3 = mysqli_query($Connection, "SELECT * FROM posts WHERE added_by='$added_by'");   
    $NumPosts = mysqli_num_rows($SQL_3);
    $out['num_posts'] = $NumPosts;
    while($Fetch_3 = mysqli_fetch_array($SQL_3))
    {           
        $out['id'] = $Fetch_3['id'];
        $out['text'] = $Fetch_3['text'];
        $out['added_by'] = $Fetch_3['added_by'];
        $out['mp4'] = $Fetch_3['mp4'];
        $out['likes'] = $Fetch_3['likes'];
        $out['youtube'] = $Fetch_3['youtube'];
        $out['image'] = $Fetch_3['image'];
        $out['date_added'] = $Fetch_3['date_added'];
        return $out;
    }
}
index.php.
$posts = load_post('gentritabazi');
<div class="settings_forms_content">
<?php echo $posts['text']; ?>
</div>
 
     
     
     
    