Hello for an easy data handling I though of creating a class but I think I must have missed something as it stops the page from loading when I include it.
I think that the error must be something very simple but I don't have much experience in coding in php so if someone could point me in the direction of the mistake and give me an idea of what to implement to resolve this issue.
Like said above in this scenario it will ouput the page until test
and then it wont put the rest.
index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>test</p>
<?php include("class_lib.php"); ?>
<p>test2</p>
</body>
</html>
class_lib.php:
<?php
class MyAbility{
var $Name;
var $URL;
var $Level1;
var $Level2;
var $Level2;
var $Level4;
var $Level5;
function set_Name($new_name) {
$this->Name = $new_name;
}
function get_Name() {
return $this->Name;
}
function set_URL($new_URL) {
$this->URL = $new_URL;
}
function get_URL() {
return $this->URL;
}
function set_Level1($new_Level1) {
$this->Level1 = $new_Level1;
}
function get_Level1() {
return $this->Level1;
}
function set_Level2($new_Level2) {
$this->Level2 = $new_Level2;
}
function get_Level2() {
return $this->Level2;
}
function set_Level3($new_Level3) {
$this->Level3 = $new_Level3;
}
function get_Level3() {
return $this->Level3;
}
function set_Level4($new_Level4) {
$this->Level4 = $new_Level4;
}
function get_Level4() {
return $this->Level4;
}
function set_Level5($new_Level5) {
$this->Level5 = $new_Level5;
}
function get_Level5() {
return $this->Level5;
}
}
?>