After a couple of years running my 1.7.4 localhost system completely out of the box I decided to go to the 1.8.1. Since the download I haven't been able to run php programs. I've uninstalled & installed back to the older version & back again.I've checked my databases a couple of times, They are good. They control panel and command both tell me apache and mysql running but the php files only display code? Below is the stripped down php code and message. I sure could use some help.
<?php
if (isset( $_POST['payrec']) )
{
$recur=$_POST['recur'];
$pd=$_POST['pd'];
$payrec=$_POST['payrec'];
$acctno=$_POST['acctno'];
}
mysql_connect('localhost','root','');
mysql_select_db('oodb') or die( "Unable to select database");
print $_POST['acctno'];
$query = "
INSERT INTO oocust (recur,pd,payrec,acctno)
VALUES ('$recur','$pd','$payrec','$acctno')";
echo "data inserted</font><br /><br />";
$stat = mysql_query($query) or die('Query failed: ' . mysql_error());
mysql_close();
?>