How to input data using php?
I already created code to input data from <form></form> html to mysql using external php, but when I try to run it, it looks like this:
How to input data using php?
I already created code to input data from <form></form> html to mysql using external php, but when I try to run it, it looks like this:
 
    
     
    
    The first thing to understand, php codes do not execute by your browser, it is executed on your server, so the first thing you need is a server.
By looking at your URL, I can see you are using XAMPP.
Replacing everything before Resolusi2018 by just localhost would do the job.
Put your files into the root directory then access your page by entering 
localhost/Resolusi2018/root/php/ngetes.php in your browser.
 
    
     
    
    Ok, so I think your URL is just wrong.
You are opening the file directly, and not from the localhost.
Try something like this:
localhost/Resolusi2018/root/php/mgetes.php
If this is also not working, check if your XAMPP is actually running.
