global recordset
Good morning, I have worked on this for a couple of days with no success. I am trying to sent out an email from a page that has a form in it. I added the Send Email behavior, everything works fine until I try to add a global recordset to the email page. Obviously I do not understand how to use the global statement. In the page that calls the Send Email behavior I added this code to the top of the page:
<?php
global $MyConnection;
?>
<?php ini_set("display_errors",1);?>
<?php require_once('../Connections/MyConnection.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php require_once("../webassist/email/WA_Email.php"); ?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
Could you please help explain how to the global statement in my .php page.
Thank you as always
Karen