Just can't get PHP code to run!

Sorry for a being completely ignorant, but I am unable to get any of my PHP code to run in the browser! I have an HTML file with PHP tags in, when I use F12 in chrome the PHP code appears in green without executing.

My code is:
`

<?php $remote_server = 'XXXXX'; $db_user = 'XXXXX'; $db_password = "XXXX"; $db_name = 'XXXX'; $mysqli = mysqli_connect($remote_server, $db_user, $db_password, $db_name); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql = "Select Astyle From questions;" if ($result=mysqli_query($mysqli,$sql)) { // Return the number of rows in result set $rowcount=mysqli_num_rows($result); printf($rowcount); // Free result set mysqli_free_result($result); } mysqli_close($mysqli); ?>

`
Please help!!
Andy

I checked your account and all the PHP codes do seem to run (even though they may crash because of errors). Do you still experience the problem? And if so, can you please tell us the URL of the script?