Error message with simple MySQLi page
I've recently installed the MySQLi extension and am just making a simple page. My page looks like this -
<?php
ini_set('display_errors', 1); ?>
<?php require_once('Connections/connMySQLi.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$rsQuotes = new WA_MySQLi_RS("rsQuotes",$connMySQLi,10);
$rsQuotes->setQuery("SELECT quotes.quotes_quote FROM quotes WHERE quotes.quotes_display=1");
$rsQuotes->execute();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
while(!$rsQuotes->atEnd()) {
?>
<p><?php echo($rsQuotes->getColumnVal("quotes_quote")); ?></p><br>
<?php
$rsQuotes->moveNext();
}
?>
</body>
</html>
My Connection file looks like this (and it tests OK, as does the recordset on the simple page) -
<?php
# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connMySQLi = "123.123.123.123";
$database_connMySQLi = "database";
$username_connMySQLi = "user";
$password_connMySQLi = "password";
@session_start();
$foundConnection = false;
if ($foundConnection == false) {
$domains = explode(",","example.com");
for ($domindex = 0; $domindex<sizeof($domains) && !$foundConnection; $domindex++) {
$domainCheck = trim($domains[$domindex]);
if (strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) !== false && ($domainCheck == "" || strpos(strtolower($_SERVER["SERVER_NAME"]),strtolower($domainCheck)) == strlen($_SERVER["SERVER_NAME"])-strlen($domainCheck))) {
$hostname_connMySQLi = "localhost";
$database_connMySQLi = "database";
$username_connMySQLi = "user";
$password_connMySQLi = "password";
$foundConnection = true;
}
}
}
$connMySQLi = new mysqli($hostname_connMySQLi, $username_connMySQLi, $password_connMySQLi, $database_connMySQLi);
?>
(The code has been 'sanitized')
When I upload these files and browse to the page, I get this error -
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 4294967296 bytes) in /home/example/public_html/webassist/mysqli/rsobj.php(224) : eval()'d code on line 1
Any idea why I am getting that?