Jump to content

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION Help :S


jamesxg1

Recommended Posts

Hiya peeps,

 

Here's what I'm doing.

 

<?php session_start();

class profileDetails {

	$error = '<style>
		.error {
			background-color:#edf1f3;
			border-style:solid;
			border-width:1px;
			border-color:#9aaab4;
			padding:4pt;
			text-align:left;
			margin-left:10px;
			margin-right:6px;
		}

		.errortext {
			color:#009999;
			font-style: normal;
			font-family: monospace;
			font-weight:bold;
		}
		</style>
		<div class="error"><span class="errortext"><center>Sorry for inconvenience but our system has located an error.</center></span></div>';

	private $memberID;

 

If I remove $error the error goes, the thing that baffling me is I am doing this in all of my other classes, does anyone know why this is happening?

 

Many thanks

 

James

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.