Jump to content

what's going with PHP


Recommended Posts

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.

";
$stat = mysql_query($query) or die('Query failed: ' . mysql_error());
mysql_close(); ?>

<?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();
?>
Link to comment
https://forums.phpfreaks.com/topic/277189-whats-going-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.