i have prob on code with error
Posted: Sat Jul 05, 2003 3:31 pm
the error
the cone on that line is
why????
here the plave that active the commandplz help me
Code: Select all
Fatal error: Cannot redeclare class func in /home/virtual/site3/fst/var/www/html/il-pc/includes/functions.php on line 2Code: Select all
<?php
class func extends mysql {
var $dt;
function s_title($loc) {
switch ($loc) {
case "update":
$this->dt = array (
'title' => "UpDate Web Site" ,
'js' => "./includes/bbcode.js"
);
break;
case "menu":
$this->dt = array (
'title' => "UpDate Menu Web Site"
);
break;
case "vote":
$this->dt = array (
'title' => "UpDate Vote System"
);
break;
case "games":
$this->dt = array (
'title' => "UpDate Games Settings"
);
break;
case "settings":
$this->dt = array (
'title' => "UpDate Main Setiings Web Site"
);
break;
}
}
}
?>here the plave that active the command
Code: Select all
<?php
include ("./includes/functions.php");
$st = new func();
$st->s_title($loc);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<SCRIPT src="<?= $st->dt['js'] ?>" language="javascript"></SCRIPT>
<title>IL-Vortex - PC ( <?= $st->dt['title'] ?> )</title>