0

im trying run this code but show error :

(Parse error: syntax error, unexpected ':', expecting ')' in D:\xamp\htdocs\Personal\Personal.php on line 21) my code :

    <?php 
        $query = mysqli_query ($connection ,
         query: ' SELECT * FROM menu');
        
        while($row = mysqli_fetch_array($query)):
    
    ?>
    <ul>
        <li class="list active">
            <a href="#">
                <span class="icon"><ion-icon name="home-outline"></ion-icon></span>
                <span class="text">home</span>
            </a>
        </li>

       <?php  endwhile; ?>
javan7875
  • 1
  • 1

0 Answers0