Hello DaniWeb,
I've finally gotten around to swapping from MySQL to MySQL(i), mainly due to it's security advantages with Prepared Statements.
In the past I've been adding include ('/Some/Directory/File.php);
to the top of each page, so that I can store my functions in a secure directory and so that I only need to edit it once (such as if I change the password for the database).
When I attempted to do this in MySQL(i), I cannot get it to work. For example,
function Index_Visits()
{
$Connect = mysqli_connect('localhost', '***', '***', '***');
$Query = "SELECT Index_Visits FROM SiteStatistics WHERE ID = 1";
$Result = mysqli_query($Connect, $Query);
$Row = mysqli_fetch_array($Result, MYSQLI_ASSOC);
$CurVisits = $Row['Index_Visits'];
echo $CurVisits;
}
I use the above to display the total number of page visits to the Index Page, it is only part of it but it gives you an example.
When I go to call this, such as Index_Visits();
it shall work fine if it is in the same file, but if I store the function in a seperate .php file and include it and then try to execute it, it shall not work... no errors, no display, just a blank browser.