Can I send the value of script to php?

can you translate days into the number of php accounts?
the code is as follows:

$("-sharpdemo").multiDatesPicker({
    dateFormat: "d-m-y",
});

$("-sharpgetdates").click(function(e){
    var days;
 
    var selectedDates = $("-sharpdemo").multiDatesPicker("getdates");
    for(i in selectedDates){
        if(days)
           days += ","+selectedDates[i].split("-",1);
        else
           days = selectedDates[i].split("-",1);           
    }
   
})
Apr.09,2021

output variables with json_encode
similar to var days= ;


submit with ajax

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdb573-309f4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdb573-309f4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?