Skip to content

Tag: javascript

Can’t include js files in php file on cpanel

I am trying to use a JavaScript library (from GitHub) on my website but I can’t get it to work. It works when I set it up in VS code but not when I upload my code to cpanel (along with the required files). The website is a wordpress site so I just create page templates and link the templates

PHP and javascript Array Literals

I need help, sending data from the server. shaped and I process but I don’t know exactly how to approach individual parameters. you don’t know where the problem is. enter image description here Answer The problem is that the data is coming back as a string, and you’re trying to read it as JS…

Delete MYSQL DB Entry via PHP / HTML Button

Hey. Iam learning PHP and MYSQL atm. So i wrote already code which will display everything from my database nicely into HTML. I create also a button which says Delete. Now i want to write a Code which actually Deletes the specific entry (all have an ID ) but iam kinda lost. i know the command is: $sql = &#822…