testapi.js
/*
Function deleting a specific video in a playlist of a specific selected user
It's done by calling the API
 */
Function deleting a specific video in a playlist of a specific selected user
It's done by calling the API
Function deleting a specific video in a playlist of a specific selected user It ' s done by calling the API
function delete_video(video_id) {
    let username = $("#select_users").val();
    console.log(username);
    $.ajax({
        method: 'DELETE',
        data: {
            username: username,
            v: video_id,
        },
        url: './library.php',
        success: function (response) {
            show_user();
        },
        error: function (xhr, status, error) {
            alert(error);
        }
    })
}
function delete_video ( video_id ) { let username = $ ( "#select_users" ) . val ( ) ; console . log ( username ) ; $ . ajax ( { method : 'DELETE' , data : { username : username , v : video_id , } , url : './library.php' , success : function ( response ) { show_user ( ) ; } , error : function ( xhr , status , error ) { alert ( error ) ; } } ) }
Function deleting a specific video in a playlist of a specific selected user
It's done by calling the API
Function deleting a specific video in a playlist of a specific selected user It ' s done by calling the API