How to get my insert.php url in jquery?

I think you must add all the url , because if your script file is not located in the main page it will not access this url: ‘admin.php?page=insert.php’, tray to add the full url , url: ‘domain.com…/admin.php?page=insert.php’

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)