I want to add a PHP script onto one of my WordPress pages.
The only problem is that it shows the code but nothing happens!
I tired installing a plugin called: Exec-PHP but there was no change.
Here is the code:
<?php $sql_host = ""; //host adress $sql_user = ""; //username $sql_pass = ""; //password $sql_database = ""; //database name mysql_connect($sql_host, $sql_user, $sql_pass) or die(mysql_error()); mysql_select_db($sql_database) or die(mysql_error()); ?>
When I put it on my page I fill out the SQL bit but I don't want to post it here unless I have to.
Please can you help me! A Tutorial on how to fix/solve this would be amazing!