Im having some problems running php files on my localhost. When I run them in the browser all I can see is the php code, Im just trying to establish a connection to MySql database. I have installed XAMPP.
For example:
<?php
$user = 'root';
$pass = '';
$db = 'letsdeal';
$dbConn = new mysqli('localhost', $user, $pass, $db) or die("Cant connect");
echo "Yes";
?>
When I run it all I see is the php code, somebody knows why?
Thanks in advance!