jamesxg1 Posted April 7, 2010 Share Posted April 7, 2010 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 Link to comment https://forums.phpfreaks.com/topic/197857-parse-error-syntax-error-unexpected-t_variable-expecting-t_function-help-s/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.