php - Fatal error: Call to undefined method - does not completely -
this how able update quick , easy, select database , same time updater content have right in.
this how error: fatal error: call undefined method mebe::boxforside() in /home/jesperbo/public_html/blabla.dk/admin_forside.php on line 30
admin_forside.php show here:
<?php $forside_tekst = $mebe->boxforside(); ?>
into large file information looks this: *fun_db.php*
function boxforside() { if ($stmt = $this->mysqli->prepare("select `tekst` `forside_tekst`")) { $stmt->execute(); $stmt->bind_result($tekst); while ($stmt->fetch()) { ?> <form action="#" method="post"> <textarea name="tekst" cols="20" rows="15" class="new" style="width:100%;"><?php echo $tekst;?></textarea> <input type="submit" name="opret" value="opret blog" class="new"></td> </form> <?php } $stmt->close(); } else { echo 'der opstod en fejl erklæringen: ' . $this->mysqli->error; } if(isset($_post["opret"])) { if ($stmt = $this->mysqli->prepare('update `forside_tekst` set `tekst`=? `id`=?')) { $stmt->bind_param('si', $tekst, $id); $tekst = $_post["tekst"]; $id = 1; $stmt->execute(); $stmt->close(); } } }
when download files looks on toppe af admin_forside.php
session_start(); require_once ("indhold/inc/fun_db.php"); //download alle files site. $mebe = new mebe; $db = $mebe->db_c(); error_reporting(e_error); //take alle error away
i not see why can not work.
Comments
Post a Comment