Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.