[Table1: notification](https://i.stack.imgur.com/OsArC.png)
[Table2: user\_notification](https://i.stack.imgur.com/1QNnG.png)

```
$notice = "SELECT id FROM notification
    WHERE noti_user ='Pro'";
$noticeqry = mysqli_query($con, $notice); 

$sql = "INSERT INTO `user_notification` (`notif_id`, `user_id`) 
  values while($noticerow = mysqli_fetch_array($noticeqry)){("$noticerow['id']", "$univuid"}";
  $query= mysqli_query($con,$sql);

```

Not working and getting error Parse error: syntax error, unexpected variable "$noticerow"