Template won't connect to MySQL
I am using UE 4 and I am trying to send an email as the final step in a transaction. I am using a session variable to pass the key to the template file.
What I am getting is:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /var/www/html/domain.com/webassist/email/templates/invoice.php on line 44
I have checked the connection file path and it is correct. I even tried changing it to a static path:
<?php require_once($_SERVER["DOCUMENT_ROOT"].'/Connections/conn.php'); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}...
Is there something about templates I am missing. If I try to just make a DW file, using the DW button in the GUI, I get too much of the page's template, so an external file would be desirable.