I want to pass the array of values fetched from the database as a parameter to a php function.If I echo the value, it doesn't display it.
      <?php
  include "config.php";
  $sql="select * from project where comp_id='1'";
  $sql1=mysql_query($sql);
  $rows=array();
  while( $fet=mysql_fetch_array($sql1))
  {
   $rows[]=$fet;
   }
  echo fun_parameter($rows);
  function fun_parameter($rows)
   {
     echo" rows". $rows['start_date']."values";   //  not working
   }
    foreach($rows as $row)
     {
     echo $name=$row['start_date'];   /working
     } 
   ?>
 
     
    