Table1: notification Table2: user_notification
$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"