When I add a PHP function, it shows me the above error on the server error page. Where is my problem?
smileysboxall.php
class kochClass {
function smileysboxrep($Sid){
echo'<img src="../smile.gif" alt=":)" class="embtno" id="'.$Sid.'" />
<img src="../sad.gif" alt=":(" class="embtno" id="'.$Sid.'" />
<img src="../biggrin.gif" alt=":-D" class="embtno" id="'.$Sid.'" />';
}
function smileysboxcom($id){
echo'<img src="../smile.gif" alt=":)" class="embtn" id="'.$id.'" />
<img src="../sad.gif" alt=":(" class="embtn" id="'.$id.'" />
<img src="../biggrin.gif" alt=":-D" class="embtn" id="'.$id.'" />';
}
}
$kochClass = new kochClass();
Call function at index.php
// Query and echoing
$Sid = $rows['s_id'];
include_once("smileysboxall.php");
if ($Sid){ echo ''.$kochClass->smileysboxrep($Sid).'';}