my php code is not executed and is displayed as it is in the browser.
I used the .php
extension to save the file.
I am using WAMP Server.
Please also note that other php files are working which shows that php is installed and configured properly.
The code I am using:
<?php
$name=$_POST['name'];
$un=$_POST['un'];
$pw=$_POST['pw'];
$ei=$_POST['ei'];
$con=mysqli_connect('localhost','root');
mysqli_select_db($con,'login');
$q=" INSERT INTO user (name, username, password) value('$name','$un,'$pw')";
mysqli_query($con,$q);
mysqli_close($con);
?>