close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Error message with simple MySQLi page

Thread began 7/04/2014 1:49 pm by msummers194171 | Last modified 9/26/2014 3:45 pm by msummers194171 | 1626 views | 7 replies


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 -

ini_set('display_errors', 1); ?>
<?php require_once('Connections/connMySQLi.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$rsQuotes = new WA_MySQLi_RS("rsQuotes",$connMySQLi,10);
$rsQuotes->setQuery("SELECT quotes.quotes_quote FROM quotes WHERE quotes.quotes_display=1");
<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</title>

while(!$rsQuotes->atEnd()) {
<p><?php echo($rsQuotes->getColumnVal("quotes_quote")); ?></p><br>

My Connection file looks like this (and it tests OK, as does the recordset on the simple page) -

# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connMySQLi = "";
$database_connMySQLi = "database";
$username_connMySQLi = "user";
$password_connMySQLi = "password";
$foundConnection = false;
if ($foundConnection == false) {
$domains = explode(",","");
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?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...