12Strings Posted April 22, 2013 Share Posted April 22, 2013 After a couple of years running my 1.7.4 localhost system completelyout of the box I decided to go to the 1.8.1. Since the download I haven'tbeen able to run php programs. I've uninstalled & installed back tothe 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 mysqlrunning but the php files only display code? Below is the stripped downphp 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 More sharing options...
requinix Posted April 22, 2013 Share Posted April 22, 2013 Yep, it's displaying the PHP rather than executing it. PHP's not installed/set up. Did you check the instructions or manual for whatever it is you installed? Link to comment https://forums.phpfreaks.com/topic/277189-whats-going-with-php/#findComment-1426019 Share on other sites More sharing options...
Jessica Posted April 22, 2013 Share Posted April 22, 2013 Moving to the right forum. Link to comment https://forums.phpfreaks.com/topic/277189-whats-going-with-php/#findComment-1426020 Share on other sites More sharing options...
trq Posted April 23, 2013 Share Posted April 23, 2013 1.7.4 / 1.8.1 these are version numbers of what? It sure aint PHP. Link to comment https://forums.phpfreaks.com/topic/277189-whats-going-with-php/#findComment-1426037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.