Hi, I have programmed one hand and tossed it on my host's server but get the error here
Fatal error: Allowed memory size of 536870912 byte exhausted (tried to allocate 4294967296 bytes)
This is my code
<?php
require 'opsatning/top.php';
?>
<!--[if IE]>
<style>
.arrow { top: 100%; };
</style>
<![endif]-->
<div id="content_indhold">
<?php
$mysql = connect();
$stmt = $mysql->prepare("SELECT id,billed_sti,overskrift,indhold,brugernavn,dato FROM nyheder ORDER BY id DESC LIMIT 3");
$stmt->bind_result($id, $billed_sti, $overskrift, $indhold, $brugernavn, $dato);
$stmt->execute();
while($stmt->fetch()) {
?>
<div class="nyhederRamme2">
<h1><a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo $overskrift; ?></a><span class="arrow"></span></h1>
<br />
<a href="vis.nyheder.php?id=<?php echo $id; ?>"><img style="float:left; margin-right:5px;" src="images/nyheder/<?php echo $billed_sti; ?>" /></a>
<a href="vis.nyheder.php?id=<?php echo $id; ?>"><?php echo substr($indhold,0,700); ?></a>
</div><!-- ramme -->
<?php
}#Lukker while
?>
</div><!-- content_indhold -->
<?php
#require 'opsatning/bund.php';
?>
Has no extraction from the database in my top.php, so do not understand it completely, it's nothing I pull out of the database
Hope knows what I'm doing wrong or could do in a different way.
Thanks in advance