Björn Freitag: PHP-Error: non-objekt

Beitrag lesen

Hallo,

ich hab eine index.php wo eine andere php(hier kontakt.php eingebunden wird).
die php enthält eine funkion!

und beim aufruf von der index.php kommt diesr fehler:
Fatal error: Call to a member function on a non-object in /www/htdocs/v118370/kontakt.php on line 3

so quelltext:
index.php:
else {
  include($link);
  $seite = TempLoad($_GET['section']);
  eval("$main = "$seite";");
}

kontakt.php:
<?php
function TempLoad($teil) {
  $kontakt_result = $dbzugriff->query("SELECT * FROM jufo_kontakt order by AutoID"); //zeile 3
$j = mysql_num_fields($result);
for($x=0;$x<mysql_num_rows($liste_result);$x++) {
  for($i = 0; $i < $j; $i++) {
 $k = mysql_field_name($result,$i);
         $$k = mysql_result($kontakt_result,$x,$i);
       }
         $kontaktinc = "";
         eval("$site = "".gettemplate("kontaktinc")."";");
         $kontaktinc.=$site;
  }
eval("$temp = "".gettemplate("kontakt")."";");
return $temp;
}
?>

kann mir jmd helfen?