I’m trying to use php on my wordpress page so I Installed the exe-php plugin and had a problem. I placed this in my header.php file
<?php
if ( is_page(2) ) {
include (TEMPLATEPATH . 'conn.php');
}
?>
(screenshot)
The conn.php file has my php connection thing (works on another page)
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname = "209.200.229.220";
$database = "nikel0_nikel";
$username = "nikel0_luke";
$password = "***";
#$nikel = mysql_pconnect($hostname_nikel, $username_nikel, $password_nikel) or trigger_error(mysql_error(),E_USER_ERROR);
$nikel = mysql_connect("$hostname", "$username", "$password");
mysql_select_db("$database");
?>
But What is the problem here,
http://nikelantiquedolls.com/wordpress/?page_id=2