Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I have created a log in system. My PHP is on a separate script file than my HTML. I want to
Tag: external
Include external javascript file in header navbar file not found
I have the following folder structure: website.com/index.php website.com/page/asd.php website.com/header.php website.com/js/file.js header.php contains: index.php contains: asd.php contains: So file.js will work on index.php, but file.js doesnt work on asd.php. On asd.php the browser want to get /pages/js/file.js (which doesnt exist) and not /js/file.js How can I handle this problem? Thank you. Answer Start path of your file with / This will
External JS file engine — manipulating db using node.js? PHP?
Admittedly, I’m new to some of this… Building a website on a local server. It has a ton of JS function in an external JS file. Site has a MYSQL DB. (I am still learning this). As part of my …