For some reason some of my php code is being displayed as text in my web browser. Here is my code:
<?php
class user {
var $userid;
var $username;
var $password;
var $email;
var $validated;
var $validkey;
var $score;
var $avatar;
var $status;
var $lastactivitytime;
function get_userid() {
return $this->userid;
}
function get_username() {
return $this->username;
}
function get_password() {
return $this->password;
}
function get_email() {
return $this->email;
}
function get_validated() {
return $this->validated;
}
function get_validkey() {
return $this->validkey;
}
function get_score() {
return $this->score;
}
function get_avatar() {
return $this->avatar;
}
function get_status() {
return $this->status;
}
function get_lastactivitytime() {
return $this->lastactivitytime;
}
function set_userid($userid) {
$this->userid = $userid;
}
function set_username($username) {
$this->username = $username;
}
function set_password($password) {
$this->password = $password;
}
function set_email($email) {
$this->email = $email;
}
function set_validated($validated) {
$this->validated = $validated;
}
function set_validkey($validkey) {
$this->validkey = $validkey;
}
function set_score($score) {
$this->score = $score;
}
function set_avatar($avatar) {
$this->avatar = $avatar;
}
function set_status($status) {
$this->status = $status;
}
function set_lastactivitytime($lastactivitytime) {
$this->lastactivitytime = $lastactivitytime;
}
}
?>
[here is what is being displayed in my browser:
userid; } function get_username() { return $this->username; } function get_password() { return $this->password; } function get_email() { return $this->email; } function get_validated() { return $this->validated; } function get_validkey() { return $this->validkey; } function get_score() { return $this->score; } function get_avatar() { return $this->avatar; } function get_status() { return $this->status; } function get_lastactivitytime() { return $this->lastactivitytime; } function set_userid($userid) { $this->userid = $userid; } function set_username($username) { $this->username = $username; } function set_password($password) { $this->password = $password; } function set_email($email) { $this->email = $email; } function set_validated($validated) { $this->validated = $validated; } function set_validkey($validkey) { $this->validkey = $validkey; } function set_score($score) { $this->score = $score; } function set_avatar($avatar) { $this->avatar = $avatar; } function set_status($status) { $this->status = $status; } function set_lastactivitytime($lastactivitytime) { $this->lastactivitytime = $lastactivitytime; } } ?>
As you can see anything after the get_userid() function is being displayed as text but, everything is is being rendered in php. Any ideas?
Thanks,
Space Xscape