I have a while loop from which I'm Fetching Name from database, How can I add all the name fetched from database into that array
Here is How I fetch Name From Database
<?php $a = mysqli_query($connecDB, "SELECT * FROM video WHERE post_id='$puser'");
while( $b = mysqli_fetch_array($a)){?>
name: <?php echo $b['name'];?><br>
<?php } ?>
This Results in
name: example1
name: example2 & so on......
i want to put all these name into array like this->
array("example1", "example2", "example3");