I need to pass an array as a function argument from php to js.i am getting the values from database.
while ($rows = pg_fetch_array($qry))
{
?>
<option value="<?php echo $rows['relation_name_local']?>">
<?php echo $rows['relation_name_local']?>
</option>
<?php
$app_relation_array[] = $rows['relation_name_local'];
}?>
i want to pass $app_relation_array[] values through addNewRow() this function Can anyone please help me with this. Thanks a lot.